1 Jul 2005 07:02
RE: KernelNewbies Wikki
Sanjay Kumar, Noida <sanjayku <at> hcltech.com>
2005-07-01 05:02:11 GMT
2005-07-01 05:02:11 GMT
Hi, In the module registration function (loading) of the HelloDriverSource http://wiki.kernelnewbies.org/wiki/HelloDriverSource if the kmalloc fails for hello_msg, why do we need to release the semaphore.This is the code snippet: if (!hello_msg){ up(&hello_sem); return -ENOMEM; } Till this point, the semaphore has not even been initialized. Am I missing something. Sanjay. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ http://sanjayku.blogspot.com >-----Original Message----- >From: kernelnewbies-bounce <at> nl.linux.org [mailto:kernelnewbies- >bounce <at> nl.linux.org] On Behalf Of Tyler >Sent: Thursday, June 30, 2005 2:09 AM >To: kernelnewbies <at> nl.linux.org >Subject: KernelNewbies Wikki > >Hi all, > >I've added a section in the kernel newbies wikki : the >KernelCodeRepository : >http://wiki.kernelnewbies.org/wiki/KernelCodeRepository >Every user can add some kernel code, so everybody can read it, learn(Continue reading)
RSS Feed