Is it possible for me to print on the console from a kernel module using uprintf?
monkeyboy said:what do you mean by "console" ?
I believe printf() prints a message to the console, i.e. on a PC, the terminal associated with the system video card, and uprintf() prints a message to a user terminal, i.e. the controlling tty of the process associated with current kernel action. There are other variants, essentially frontends to the routine kvprintf(). See the file subr_prf.c .
really? Did you try it? I don't see why it wouldn't and plenty of loadable kernel modules use printf(). Both printf() and uprintf() call the same underlying kvprintf() routine, so it should all work the same...GroupInode said:I basically want something that will work like printf but for a kernel module. Because I think printf won't work in kernel module.