getname() & IS_ERR

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

 



Hi ,
In system calls like open(), chmod(), chown() etc. getname() is used to copy the user space file name/path to the kernel space. Correct me if I'm wrong.
The it err check the return value by the macro IS_ERR.
If  "IS_ERR" succeeds then the syscall return from there.

What this IS_ERR/IS_ERR_VALUE/unlikely() does?
Why this getname() fails in which condition?
I'm unable to make out anythig.
Any idea/ pointer will be great.


Thanks,
Saumendra Dash



--
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