On 5/31/07, Avishay Traeger <atraeger@xxxxxxxxxxxxx> wrote:
You can only use "exported" functions from modules. Functions are exported from the kernel using "EXPORT_SYMBOL(function_name);" For random numbers, maybe take a look at srandom32() to set the random seed and random32() to get a random 32-bit number.
Thanks, that works fine. Do I _need_ to call srandom32() before using random32()? Calling rmmod and insmod a few times, it appears to be seeded already. Assuming I need to call it, what can I use to seed it? I don't have time() from time.h anymore so this doesn't work: srandom32( ( unsigned ) time( NULL ) / 2 ); -- Greg Donald http://destiney.com/ -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ