file->private_data

2 messages, 2 authors, 2002-07-23 · open the first message on its own page

file->private_data

From: Khai Trinh <hidden>
Date: 2002-07-23 17:04:24

Hi folks,

I am new to linux. So, my question is:

what is file->private_data? Does it set to the device
structure by the kernel when you register your device
with devfs_register()?

Thanks,
--Khai

Yahoo! Health - Feel better, live better
http://health.yahoo.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

Re: file->private_data

From: John Tyner <hidden>
Date: 2002-07-23 17:13:56

That pointer is all yours. Your driver can store data that is specifiec to
each open device using that pointer.

On Tue, 23 Jul 2002, Khai Trinh wrote:
Hi folks,

I am new to linux. So, my question is:

what is file->private_data? Does it set to the device
structure by the kernel when you register your device
with devfs_register()?

Thanks,
--Khai

Yahoo! Health - Feel better, live better
http://health.yahoo.com

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help