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

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

 



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. I've also tried tweaking udev's config with something like
KERNEL="mymod",NAME="mymod" but I don't think that should be necessary
from what I've seen. I've been looking at some char devices that show
up automatically in /dev, but I don't see anything they're doing that
I'm not. I must be missing something obvious.

Thanks!
don't be afraid me to point me to the appropriate fm if I missed something

~Jake B

--
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