1 // SPDX-License-Identifier: GPL-2.0
3 #define EFD_SEMAPHORE 1
7 #define EFD_NONBLOCK 00004000
11 #define EFD_CLOEXEC 02000000
14 static size_t syscall_arg__scnprintf_eventfd_flags(char *bf
, size_t size
, struct syscall_arg
*arg
)
16 int printed
= 0, flags
= arg
->val
;
19 return scnprintf(bf
, size
, "NONE");
21 if (flags & EFD_##n) { \
22 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \
32 printed
+= scnprintf(bf
+ printed
, size
- printed
, "%s%#x", printed
? "|" : "", flags
);
37 #define SCA_EFD_FLAGS syscall_arg__scnprintf_eventfd_flags