mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: "Sander, Tim" <Tim.Sander@hbm.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: automagic udev device node creation?
Date: Wed, 12 Aug 2009 18:23:48 +0200	[thread overview]
Message-ID: <ac3eb2510908120923w4a3bc4efuc747a80ed13ccc31@mail.gmail.com> (raw)
In-Reply-To: <35C3744979512D47ABD7DBA7920B2DBB091F50@HBMNTX3.hbm.com>

On Wed, Aug 12, 2009 at 18:04, Sander, Tim<Tim.Sander@hbm.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

      reply	other threads:[~2009-08-12 16:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-12 16:04 Sander, Tim
2009-08-12 16:23 ` Kay Sievers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ac3eb2510908120923w4a3bc4efuc747a80ed13ccc31@mail.gmail.com \
    --to=kay.sievers@vrfy.org \
    --cc=Tim.Sander@hbm.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®