[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <f608b67d1002032224r74450689ge416382a1db8e4cf@mail.gmail.com>
Date: Wed, 3 Feb 2010 22:24:46 -0800
From: vb@...e.com
To: linux-kernel@...r.kernel.org
Subject: associating 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists