mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
14 lines
285 B
C
14 lines
285 B
C
/* https://cirosantilli.com/linux-kernel-module-cheat#getpid */
|
|
|
|
#define _XOPEN_SOURCE 700
|
|
#include <inttypes.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <sys/types.h>
|
|
#include <unistd.h>
|
|
|
|
int main(void) {
|
|
printf("pid=%jd\n", (intmax_t)getpid());
|
|
return EXIT_SUCCESS;
|
|
}
|