where are file structure operations defined??

Submitted by saumitra
on April 7, 2007 - 8:30am

where are file structure operations defined??

i found DECLRATION of file structure operations in kernel/fs/fs.h

there all operations are defined as "extern" where are they implemented..

as where can i find their defination???

grep

strcmp
on
April 7, 2007 - 1:26pm

to find your way in large source trees, you should learn to use the customary tools, e.g. find and grep. or find cross-referencing software or one of the cross-referenced kernel trees online.

too many,,

saumitra
on
April 7, 2007 - 10:03pm

ya i did grep it already...

but there are too many entries.. literally too many... isnt there any better way or Documentation of calls??

can some asmlinkage stuff help??? (just asking in case if i can divert the calls)

file_operations

kiron
on
April 7, 2007 - 11:08pm

If you are talking about file_operations, it just exports the functions prototypes of file operations in the form of function pointers. The actual functions are defined by each file system in its own way. Just go to any file system code (say ext2) to see its implementation.

Also, struct file_operations is defined in include/linux/fs.h in the kernel sources.

The best way to browse kernel sources is using cross-listed sources (LXR). You can find one here

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.