lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ac3eb2510908120923w4a3bc4efuc747a80ed13ccc31@mail.gmail.com>
Date:	Wed, 12 Aug 2009 18:23:48 +0200
From:	Kay Sievers <kay.sievers@...y.org>
To:	"Sander, Tim" <Tim.Sander@....com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: automagic udev device node creation?

On Wed, Aug 12, 2009 at 18:04, Sander, Tim<Tim.Sander@....com> wrote:
> I have written a simple mmap test driver which seems to work so far.=20
> The only problem i have, is that no udev device node is automatically =
> created?=20
> So i really would like to know what part is missing to make udev =
> automatically create
> the device node?
>
> Everything works alright if i just create the device node by hand.
>
> I suspect that these should be created out of the sysfs information =
> created by the module.

Assign the "devt" value in the registered "struct device" with the
major/minor value of your device instance.

  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=include/linux/device.h;h=aebb81036db2d368a7b55664f5a2b9d102c5109d;hb=HEAD#l407

Kay
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ