linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev 092 with kernel 2.6.10?  (version neutral simple api)
Date: Fri, 02 Mar 2007 20:21:03 +0000	[thread overview]
Message-ID: <20070302202103.GA23810@kroah.com> (raw)
In-Reply-To: <556445368AFA1C438794ABDA8901891C03445753@usa0300ms03.na.xerox.net>

On Fri, Mar 02, 2007 at 12:34:21PM -0500, Leisner, Martin wrote:
> After a number of gyrations, I got udev 092 working with 2.6.10 (and it
> looks like its
> working pretty good).
> 
> After running a number of udevs I found newer udevs have improved
> logging/debugging 
> facility over older udevs.  I found udevmonitor to be very useful.
> 
> Can someone explain why the API changed between various kernel versions?
> (i.e. removed class_simple).

Internal kernel apis change all the time.  I changed this as the
"simple" stuff wasn't really necessary, in fact the whole class_device
stuff is being deprecated now, so I would not recommend using it
anymore.  Just use a struct device instead.

> I wrapped the api changes into a header file and I ported some of the
> ldd3 examples to udev...
> I have a little tutorial on udev to pass around at work...
> 
> Writing device drivers to use udev seems very easy...but I had a great
> deal of difficulty finding
> a cookbook approach to "making udev work".

There's two different things here, writing kernel code so that udev will
work properly, and getting udev to work in userspace.

If you are referring to the kernel code, just look at the
drivers/char/mem.c code for a very simple example of how to do this in
the chr_dev_init() function.

thanks,

greg k-h

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  reply	other threads:[~2007-03-02 20:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-02 17:34 udev 092 with kernel 2.6.10? (version neutral simple api) Leisner, Martin
2007-03-02 20:21 ` Greg KH [this message]
2007-03-02 20:23 ` Greg KH

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=20070302202103.GA23810@kroah.com \
    --to=greg@kroah.com \
    --cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).