On Thursday 17 December 2009 12:11:16 David Wooff wrote: > > 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/. > > OK, many thanks for the direction Mike. I've been reading LDD3 > as it happens but no mention of hotplug events until later chapters. > Will read further.
this should be a simple enough example i think: http://blackfin.uclinux.org/gf/project/linux-kernel/scmsvn/*checkout*/trunk/drivers/char/bfin_sport.c -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