cregit-Linux how code gets into the kernel

Release 4.11 tools/perf/trace/beauty/eventfd.c

#ifndef EFD_SEMAPHORE

#define EFD_SEMAPHORE		1
#endif

#ifndef EFD_NONBLOCK

#define EFD_NONBLOCK		00004000
#endif

#ifndef EFD_CLOEXEC

#define EFD_CLOEXEC		02000000
#endif


static size_t syscall_arg__scnprintf_eventfd_flags(char *bf, size_t size, struct syscall_arg *arg) { int printed = 0, flags = arg->val; if (flags == 0) return scnprintf(bf, size, "NONE"); #define P_FLAG(n) \ if (flags & EFD_##n) { \ printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ flags &= ~EFD_##n; \ } P_FLAG(SEMAPHORE); P_FLAG(CLOEXEC); P_FLAG(NONBLOCK); #undef P_FLAG if (flags) printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); return printed; }

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo101100.00%1100.00%
Total101100.00%1100.00%

#define SCA_EFD_FLAGS syscall_arg__scnprintf_eventfd_flags

Overall Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo132100.00%1100.00%
Total132100.00%1100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.