Re: char driver and sysfs

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

 



On Thu, Sep 22, 2005 at 09:17:13AM +0200, Ivan Korzakow wrote:
> Hi all,
> 
> I'm writing a char device driver for an embedded system, and i need to
> create some attributes in sysfs. But before i get there, here are some
> of my (numerous) wonderings :
> - the registration of the driver through cdev does not create anything
> under /sys, right ?

Correct.

> - what about the kojects it creates then ? should i reuse them in a
> larger device registration ?

You should not touch the cdev kobject at all, it's only used for the
kmap stuff, it has nothing to do with sysfs.

> - the device is a smart card reader, should i create my own virtual
> bus for it or could get to some other apropriate place ?

What kind of bus does this device attach to?

thanks,

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