RE: File-op

Bret Indrelee (bindrelee@sbs-cp.com)
Fri, 8 Oct 1999 16:30:12 -0500


Koushik Chakraborty [mailto:kchak@iitk.ac.in] wrote:
> There are a lot of function pointers associated with
> file_op (in strct
> file ) or say sock_op etc. I want to know where exactly in
> linux kernel
> code are these bound to specific functions (e.g, where f_op->read is
> assigned to the appropraite function say for a socket fd).

When the device driver registers itself, it gives the OS a default set of
file operations. The driver can change these, usually done at open time.

Looks at register_chrdev() and register_blkdev() routines.

-Bret

-------------------------------------------------------------
SBS Technologies, Connectivity Products
... solutions for real-time connectivity

Bret Indrelee, Engineer
SBS Technologies, Inc., Connectivity Products
1284 Corporate Center Drive, St. Paul MN 55121
Direct: (651) 905-4731
Main: (651) 905-4700 Fax: (651) 905-4701
E-mail: bindrelee@sbs-cp.com http://www.sbs.com
-------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/