lkml.org 
[lkml]   [2010]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectassociating miscdevice with inode
guys,

say I have a misc device driver which instantiates several devices.
When a file operation on this device is invoked, I need to be able to
figure out which device is being accessed. All available information
are

struct inode and struct file. Is there a way to find the address of
the miscdevice structure passed to misc_register() when this device
was created?

TIA,
/vadim


\
 
 \ /
  Last update: 2010-02-04 07:27    [W:0.334 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site