github.com/google/syzkaller@v0.0.0-20251211124644-a066d2bc4b02/tools/syz-declextract/testdata/include/fs.h (about)

     1  // Copyright 2024 syzkaller project authors. All rights reserved.
     2  // Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  struct file_operations {
     5  	void (*open)(void);
     6  	void (*read)(void);
     7  	void (*write)(void);
     8  	void (*read_iter)(void);
     9  	void (*write_iter)(void);
    10  	void (*unlocked_ioctl)(void*, unsigned int, unsigned long);
    11  	void (*mmap)(void);
    12  };
    13  
    14  static int alloc_fd() {
    15  	return 1;
    16  }
    17  
    18  static void __fget_light(int fd) {
    19  }
    20  
    21  static int from_kuid() {
    22  	return 1;
    23  }