Skip to content

Syscall Implementation Rules Standards

Himanshu Goel edited this page Oct 15, 2016 · 1 revision

-Check syscall code, SyscallSetErrno(-ENOSYS) if mismatch. Return -1 if the syscall doesn't have anything of its own to return, else return 0.

-Check permissions if necessary, SyscallSetErrno(-EPERM) if mismatch. Return conditions same as above. -Check the parameter count, SyscallsSetErrno(-ENOSYS) if mismatch. Return conditions same as above.

Clone this wiki locally