Skip to content

Commit 673293e

Browse files
committed
tools headers: Sync UAPI linux/fcntl.h with kernel sources
To pick up changes from: fe93446 ("vfs: use UAPI types for new struct delegation definition") 4be9e04 ("vfs: add needed headers for new struct delegation definition") 1602bad ("vfs: expose delegation support to userland") This should be used to beautify fcntl syscall arguments and it addresses these tools/perf build warnings: Warning: Kernel ABI header differences: diff -u tools/perf/trace/beauty/include/uapi/linux/fcntl.h include/uapi/linux/fcntl.h Please see tools/include/uapi/README. Cc: linux-fsdevel@vger.kernel.org Signed-off-by: Namhyung Kim <namhyung@kernel.org>
1 parent 34524cd commit 673293e

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • tools/perf/trace/beauty/include/uapi/linux

tools/perf/trace/beauty/include/uapi/linux/fcntl.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
#include <asm/fcntl.h>
66
#include <linux/openat2.h>
7+
#include <linux/types.h>
78

89
#define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0)
910
#define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1)
@@ -79,6 +80,17 @@
7980
*/
8081
#define RWF_WRITE_LIFE_NOT_SET RWH_WRITE_LIFE_NOT_SET
8182

83+
/* Set/Get delegations */
84+
#define F_GETDELEG (F_LINUX_SPECIFIC_BASE + 15)
85+
#define F_SETDELEG (F_LINUX_SPECIFIC_BASE + 16)
86+
87+
/* Argument structure for F_GETDELEG and F_SETDELEG */
88+
struct delegation {
89+
__u32 d_flags; /* Must be 0 */
90+
__u16 d_type; /* F_RDLCK, F_WRLCK, F_UNLCK */
91+
__u16 __pad; /* Must be 0 */
92+
};
93+
8294
/*
8395
* Types of directory notifications that may be requested.
8496
*/

0 commit comments

Comments
 (0)