On Thursday 17 December 2009 11:03:01 David Wooff wrote: > would someone mind checking my module initialisation function in case I > have missed something? > It loads without error and the appropriate message is printed out on the > console, buit it does not appear in /dev.
you need to create it yourself with `mknod`, or if you want to utilize the hotplug stack, you have to create some classes/devices using the kobject layer. /dev is not a pseudo file system (ignoring the devtmpfs in 2.6.32) which means *someone* has to create the device node. it's either you, or you setup the hotplug layer to respond to device events and create device nodes on the fly. i'm pretty sure the LDD3 book goes into these details, so you might want to try reading that. or, since apparently you only need one device node, simply use the miscdevice layer and it'll take care of it all for you. see linux/miscdevice.h and the many drivers that use it under drivers/char/. -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev