1 /* 2 * This file is auto-generated. Modifications will be lost. 3 * 4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ 5 * for more information. 6 */ 7 #ifndef _LINUX_CACHEFILES_H 8 #define _LINUX_CACHEFILES_H 9 #include <linux/types.h> 10 #include <linux/ioctl.h> 11 #define CACHEFILES_MSG_MAX_SIZE 1024 12 enum cachefiles_opcode { 13 CACHEFILES_OP_OPEN, 14 CACHEFILES_OP_CLOSE, 15 CACHEFILES_OP_READ, 16 }; 17 struct cachefiles_msg { 18 __u32 msg_id; 19 __u32 opcode; 20 __u32 len; 21 __u32 object_id; 22 __u8 data[]; 23 }; 24 struct cachefiles_open { 25 __u32 volume_key_size; 26 __u32 cookie_key_size; 27 __u32 fd; 28 __u32 flags; 29 __u8 data[]; 30 }; 31 struct cachefiles_read { 32 __u64 off; 33 __u64 len; 34 }; 35 #define CACHEFILES_IOC_READ_COMPLETE _IOW(0x98, 1, int) 36 #endif 37