On Tue, 26 Mar 2002, Dan Erickson wrote: > and then in the file_operations structure you would say something like > > static struct file_operations foo = { > write: foo_write ^^^^^^^^^^^^^^^^ > }; > > > Now my question is, what does the job of giving foo_write() its args? The underlined statement is a gcc-way of assigning a function pointer. If you notice struct file_operations you will find something similar to int (*write)(args.....) Normally you would assign this function pointer as f_op->write = foo_write; but gcc allows: write: foo_write So there is no need for providing the arguments. HTH. ciao, Amit -- I'm an angel!!! Honest! The horns are just there to hold the halo up straight. ^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^ Amit Kucheria EECS Grad. Research Assistant University of Kansas @ Lawrence (R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774 ____________________________________________________ -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/