xref: /OK3568_Linux_fs/kernel/include/uapi/linux/virtio_fs.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
2*4882a593Smuzhiyun 
3*4882a593Smuzhiyun #ifndef _UAPI_LINUX_VIRTIO_FS_H
4*4882a593Smuzhiyun #define _UAPI_LINUX_VIRTIO_FS_H
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #include <linux/types.h>
7*4882a593Smuzhiyun #include <linux/virtio_ids.h>
8*4882a593Smuzhiyun #include <linux/virtio_config.h>
9*4882a593Smuzhiyun #include <linux/virtio_types.h>
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun struct virtio_fs_config {
12*4882a593Smuzhiyun 	/* Filesystem name (UTF-8, not NUL-terminated, padded with NULs) */
13*4882a593Smuzhiyun 	__u8 tag[36];
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun 	/* Number of request queues */
16*4882a593Smuzhiyun 	__le32 num_request_queues;
17*4882a593Smuzhiyun } __attribute__((packed));
18*4882a593Smuzhiyun 
19*4882a593Smuzhiyun /* For the id field in virtio_pci_shm_cap */
20*4882a593Smuzhiyun #define VIRTIO_FS_SHMCAP_ID_CACHE 0
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun #endif /* _UAPI_LINUX_VIRTIO_FS_H */
23