[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
standard for return codes in device drivers
Hi all,
Are there standards for function return codes inside the kernel?
e.g.
-1 : unsuccessful
0 : successful
1 : set some status word/variable
.
.
Is it left to the whims of the device driver writer?
Regards,
Amit
--
The statement below is true.
The statement above is false.
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
Amit Kucheria
EECS Grad. Research Assistant
University of Kansas @ Lawrence
(R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774
____________________________________________________
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
IRC Channel: irc.openprojects.net / #kernelnewbies
Web Page: http://www.kernelnewbies.org/