Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

what's the definition of file_operation in Linux?

Status
Not open for further replies.

ubuntu_amateur

Member level 4
Joined
Sep 24, 2006
Messages
71
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,665
When writing a driver for a character device,
static struct file_operations will be used.

Well,,,what's the definition of file_operation in Linux?
could anyone explain it in details?
Or how to find out its definition in Linux source directory?
 

file_operation structure is data type which contains the fuction pointers as the members. The function pointers correspods to the various operations supported by the device driver you are writing.

It consists of Various operations like read,Write,IOCTL,lseek,
you can get the definition in /usr/src/linux/include
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top