Skip to main content
added 19 characters in body
Source Link
Kevin
  • 41.7k
  • 17
  • 91
  • 113

System calls are usually wrapped in the SYSCALL_DEFINEx()SYSCALL_DEFINEx() macro, which is why a simple grepgrep doesn't find them:

fs/namei.c:SYSCALL_DEFINE2(mkdir, const char __user *, pathname, int, mode)

fs/namei.c:SYSCALL_DEFINE2(mkdir, const char __user *, pathname, int, mode)

The final function name after the macro is expanded ends up being "sys_mkdir"sys_mkdir. The SYSCALL_DEFINEx()SYSCALL_DEFINEx() macro adds boilerplate things like tracing code that each syscall definition needs to have.

System calls are usually wrapped in the SYSCALL_DEFINEx() macro, which is why a simple grep doesn't find them:

fs/namei.c:SYSCALL_DEFINE2(mkdir, const char __user *, pathname, int, mode)

The final function name after the macro is expanded ends up being "sys_mkdir". The SYSCALL_DEFINEx() macro adds boilerplate like tracing code that each syscall definition needs to have.

System calls are usually wrapped in the SYSCALL_DEFINEx() macro, which is why a simple grep doesn't find them:

fs/namei.c:SYSCALL_DEFINE2(mkdir, const char __user *, pathname, int, mode)

The final function name after the macro is expanded ends up being sys_mkdir. The SYSCALL_DEFINEx() macro adds boilerplate things like tracing code that each syscall definition needs to have.

Source Link
stefanha
  • 231
  • 1
  • 2

System calls are usually wrapped in the SYSCALL_DEFINEx() macro, which is why a simple grep doesn't find them:

fs/namei.c:SYSCALL_DEFINE2(mkdir, const char __user *, pathname, int, mode)

The final function name after the macro is expanded ends up being "sys_mkdir". The SYSCALL_DEFINEx() macro adds boilerplate like tracing code that each syscall definition needs to have.