Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v5.2 10 lines 209 B view raw
1// SPDX-License-Identifier: LGPL-2.1 2 3#include <bpf.h> 4 5static int (*bpf_get_current_pid_tgid)(void) = (void *)BPF_FUNC_get_current_pid_tgid; 6 7static pid_t getpid(void) 8{ 9 return bpf_get_current_pid_tgid(); 10}