From mboxrd@z Thu Jan 1 00:00:00 1970 From: horserivers@gmail.com (horseriver) Date: Thu, 3 Jan 2013 18:09:43 +0800 Subject: internel implemention of file operation In-Reply-To: References: <20130103065931.GA20892@debian.localdomain> <20130103073111.GB20892@debian.localdomain> Message-ID: <20130103100943.GC20892@debian.localdomain> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Thu, Jan 03, 2013 at 01:16:06PM +0530, Rajat Sharma wrote: > > will it be maped with vm_area struct ? > Yes if it is accessed via mmap system call. you know that , in the struct vm_area_struct,there is a struct vm_operations_struct * vm_ops; in this vm_operations_struct , there are open/close functions , are there necessary relations between file operations and this struct ? thanks! > > > what is the relation between page-cache and file operation? > file operations for data access like read/write will look into page-cache > first before going to disk. > > -Rajat >