userlevel header in kernel mode

Eddie Kohler kohler at icir.org
Wed Oct 16 09:39:26 EDT 2002


Hi Tom,

You really, truly can't use userlevel headers in kernel mode. The kernel
does not support many of the C library's functions.

For rand() and srand(), though, you're in luck. The Click library itself
defines versions of random() and srandom(). Just #include <click/glue.hh>.

Eddie




More information about the click mailing list