Identify true error value for kernel API's like kmalloc() and ioremap()
manty kuma
mantykuma at gmail.com
Mon Feb 23 01:37:52 EST 2015
Hi
How to check for the error values for kernel API's like kmalloc() and
ioremap().
If the call fails, the return value is NULL. So, how do I know what caused
the failure? I have looked at examples in the kernel code. They are
returning a hard-coded value of -ENOMEM if kmalloc() fails.
Is there a way?
Regards,
Manty
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150223/60b22e55/attachment.html
More information about the Kernelnewbies
mailing list