Re: [PATCH] cdev 1/2: Eliminate /sys/cdev

From: Greg KH
Date: Fri Mar 12 2004 - 18:33:10 EST


On Fri, Mar 12, 2004 at 11:32:56AM -0700, Jonathan Corbet wrote:
> This is the first of two patches designed to make life easier for authors
> of device driver books - and, with luck, driver authors too.
>
> /sys/cdev is, according to Al, a mistake which was never really meant to
> exist. I believe nothing uses it currently - there isn't a whole lot there
> to use. Its existence takes up system resources, and also requires drivers
> to deal with the cdev's embedded kobject in their failure paths. The
> following patch (against 2.6.4) makes it all go away.

Yeah! I've been wanting this change for a while too. I've applied it
and added it to my driver-2.6 tree to have it show up in the next -mm
release. If it looks sane there I'll send it to Linus.

> OK, almost all. We have to keep (but not register) cdev_subsys because
> it's rwsem is needed to control access to cdev_map.

That's fine and is ok.

thanks again.

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/