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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 13 Nov 2006 09:07:50 -0800
From:	Greg KH <greg@...ah.com>
To:	Brice Goglin <Brice.Goglin@...-lyon.org>
Cc:	Aubrey <aubreylee@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: How to add a device file to sysfs?

On Mon, Nov 13, 2006 at 11:45:54AM +0100, Brice Goglin wrote:
> Greg KH wrote:
> > On Tue, Oct 31, 2006 at 01:30:36PM +0800, Aubrey wrote:
> >   
> >> I've read the doc under linux-2.6.x/Documentation, I can add it to
> >> some other directory, but not found a way to add it to my own
> >> directory.
> >>     
> >
> > After misc_register() has been successfully called, the variable "class"
> > will be set in the miscdevice structure.  Use that pointer to call
> > class_device_create_file() to create your new file in this directory.
> >   
> 
> How does it work in -mm where miscdevice does not contain a "class"
> anymore, but only pointers to some "device"?

Then use device_create_file() instead :)

Good luck,

greg k-h
-
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