Skip to content

Instantly share code, notes, and snippets.

@anubhavshrimal
Last active January 12, 2019 17:40
Show Gist options
  • Save anubhavshrimal/21f2a1f20f32b4d0c8d829d0a5ffba5f to your computer and use it in GitHub Desktop.
Save anubhavshrimal/21f2a1f20f32b4d0c8d829d0a5ffba5f to your computer and use it in GitHub Desktop.
linux kernel
#include <stdio.h>
#include <linux/kernel.h>
#include <sys/syscall.h>
#include <unistd.h>
int main()
{
long int amma = syscall(548);
printf("System call sys_hello returned %ld\n", amma);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment