Re: sysfs in cdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 12, 2005 at 06:12:16PM +0200, Hinko Kocevar wrote:
> Hi,
> 
> I'm registering custom char device that carries cdev struct with it. How 
> can I use sysfs and create some device files there? I need to read/write to 
> them.
> 
> I can manage to get sysfs files if I'm using struct device and registering 
> driver and device, but I can't find and reference to struct device in 
> struct cdev?!

struct cdev is not represented in sysfs, so there is no place in sysfs
to create files based on it, sorry.  Use the struct device or struct
driver for that.

Good luck,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux