aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-declextract/testdata/include/fs.h
blob: 0d0875b654ebe029e47018f2926452cd0b178e48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2024 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.

struct file_operations {
	void (*open)(void);
	void (*read)(void);
	void (*write)(void);
	void (*read_iter)(void);
	void (*write_iter)(void);
	void (*unlocked_ioctl)(void*, unsigned int, unsigned long);
	void (*mmap)(void);
};

static int alloc_fd()
{
	return 1;
}

static void __fget_light(int fd)
{
}

static int from_kuid()
{
	return 1;
}