On Fri, Aug 12, 2005 at 06:48:06PM +0200, Hinko Kocevar wrote: > Greg KH wrote: > > > >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. > > Are you suggesting that I should embedd both struct cdev and struct device > in my struct my_device? Um, no. The bus your device is on should take care of the struct device stuff. What kind of driver are you writing? Have a pointer to the code? > Otherwise I can't use cdev_init, cdev_add and similar for cdev registration > if I'm understanding this right and need to use old-style (as seen in LDD3 > chapter3.4.2. The Older Way) char device registration which it is supposed > to be removed in the future. No, you should use cdev, I never said you should not. Only that a struct cdev does not give you a place in sysfs to place your files, that's all. 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/