Re: Anyway to mknod from kernel?

Theodore Y. Ts'o (tytso@mit.edu)
Tue, 26 Oct 1999 17:18:36 -0400


Date: Tue, 26 Oct 1999 16:25:09 -0400 (EDT)
From: "Adam D. Bradley" <artdodge@cs.bu.edu>

> Is there any way for the kernel module to do the 'mknod' commands
> from within the module? I would rather have the code create the
> inode rather than needing a separate script that creates each of
> the minor device numbers.

You _can_ do it, but it's generally frowned upon. There are two other
approaches you can take:

I just normally use a separate script, since usually you need a boot
script to load the module at boot-time anyway.....

- Ted

-
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.tux.org/lkml/