Re: how to use errno in kernel loadable modules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hi,

    I am using kmalloc in my module. It returned NULL; by that i understood
there may be some scarcity in allocating the requested amount of memory ( i
requested for 64 bytes). I returned -ENOMEM, but i thought there may be some
way to return error number rather than what am using.

regards,
kishore,packetware.


----- Original Message -----
From: "Arjan van de Ven" <arjan@xxxxxxxxxxxxx>
To: "kishore" <kishore@xxxxxxxxxxxxxxxxxxx>
Cc: "kernel-issues" <kernelnewbies@xxxxxxxxxxxx>
Sent: Friday, December 30, 2005 2:04 PM
Subject: Re: how to use errno in kernel loadable modules


> On Fri, 2005-12-30 at 13:51 +0530, kishore wrote:
> > hi all,
> >
> >     let me know, how to use errno in kernel loadable modules.
>
>
> the answer is "you don't". It's the wrong thing to do and you really
> don't need it from kernel modules.
> What's the problem you're trying to solve? Do you have source code for
> it yet? (if so.. where? )
>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux