Re: Make a "Hello World" char driver show up in a udev /dev

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

 



On Thu, Nov 25, 2004 at 05:48:53PM -0800, Jake Brownson wrote:
> I'm trying to make a simple "Hello World" char driver that outputs the
> alphabet when you cat it. Everything is working great, but I can't
> figure out how to get it to show up in /dev/ automatically. I've seen
> the stuff for devfs, and I know udev is completely userspace, so I
> know I don't do anything directly to it. From what I've seen I think I
> need to put something in /sys, so I've been researching kobjects, and
> how they interact w/ sys, and I've tried registering a class_simple,
> and that makes some things come up under /sys/classes, but nothing in
> /dev.

Register a class_simple_device to your class_simple, and it should then
show up.

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