On Mon, 24 Aug 1998, N K SATHEESH KUMAR wrote:
>
> Hello,
> I have started to learn device driver writing. I studied the character
> device driver 'zero device' described by Michael Johnson in his
> "Writing Linux Device Drivers" and coded it.
> But after I compile as given by him, I see that the driver is not
> inserted. I did 'insmod'. Then too the device is not inserted.
> When I did 'lsmod' I see that the device is inserted.
> But the device file is not to be found in /dev directory. Also, when I
> do an 'open' from an application program I fail.
You have to make the device file manually with mknod(8). Device files aren't
created and deleted automatically by the kernel (modulo devfs, don't want to
start a flame war), the admin has to create them (or more likely they were
installed with your distribution). You'll notice many device files you don't
have drivers in your kernel for (e.g. all those non IDE, non SCSI cdrom
devices like /dev/aztcd).
Nils
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Nils Philippsen @college: nils@rhlx01.rz.fht-esslingen.de Vogelsangstrasse 115 @home: nils@wombat.dialup.fht-esslingen.de D 70197 Stuttgart - clickety click - phone: +49-711-6599405 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Wer heute an der Bildung spart, Those who skimp on education today, hat morgen noch bloedere Politiker. get even dumber politicians tomorrow.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html