Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Get driver name attached to a major number?

0 views
Skip to first unread message

Christophe Lohr

unread,
Dec 31, 2009, 6:00:46 AM12/31/09
to
Hi,
Given major number of a /dev file, is it possible to get driver name
attached to it?

Many thanks.

Grant Edwards

unread,
Dec 31, 2009, 9:55:55 AM12/31/09
to
On 2009-12-31, Christophe Lohr <christo...@enst-bretagne.fr> wrote:
> Hi,
> Given major number of a /dev file, is it possible to get driver name
> attached to it?

$ cat /proc/devices


Bill Waddington

unread,
Dec 31, 2009, 8:11:15 PM12/31/09
to

That gets the node name but not necessarily the driver name IIRC. And
w/later kernels, device drivers can share major numbers.

Bill
--
William D Waddington
william.w...@beezmo.com
"Even bugs...are unexpected signposts on
the long road of creativity..." - Ken Burtch

Christophe Lohr

unread,
Dec 31, 2009, 1:17:44 PM12/31/09
to
Grant Edwards a �crit :

many thanks

Regards
Christophe

0 new messages