Re: path_walk errno: -2

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

 



* Karthik M (k_mohanas@yahoo.com) wrote:

<snipped code>

> The path_walk() returns an error code number -2.
> 
> What does error code -2 mean ?? where could i find
> more information about what the different error number
> mean ?

-2 is ENOENT.  you can find this in include/asm/errno.h.  LOOKUP_POSITIVE
means path_walk will not give you back a negative dentry, so if the file
doesn't exist you'll get ENOENT.

cheers,
-chris
-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net
--
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