include/linux/syscalls.h contains, among others, the function prototypes for syscalls. #ifndef CONFIG_ARCH_HAS_SYSCALL_WRAPPER asmlinkage long sys_io_setup(unsigned nr_reqs, aio_context_t __user *ctx); asmlinkage long sys_io_destroy(aio_context_t ctx); asmlinkage long sys_io_submit(aio_context_t, long, struct iocb __user * __user *); asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb, struct io_event __user *result); … #endif
SYSCALL_DEFINE… (See also the struct syscall_metadata)
SYSCALL_METADATA
SYSCALL_TRACE_ENTER_EVENT, SYSCALL_TRACE_EXIT_EVENT include/uapi/asm-generic/unistd.h defines the syscall function numbers (__NR_…)