hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/include/linux/dma-buf-test-exporter.h
....@@ -30,20 +30,17 @@
3030 #define DMA_BUF_TE_ENQ 0x642d7465
3131 #define DMA_BUF_TE_ACK 0x68692100
3232
33
-struct dma_buf_te_ioctl_version
34
-{
33
+struct dma_buf_te_ioctl_version {
3534 int op; /**< Must be set to DMA_BUF_TE_ENQ by client, driver will set it to DMA_BUF_TE_ACK */
3635 int major; /**< Major version */
3736 int minor; /**< Minor version */
3837 };
3938
40
-struct dma_buf_te_ioctl_alloc
41
-{
39
+struct dma_buf_te_ioctl_alloc {
4240 __u64 size; /* size of buffer to allocate, in pages */
4341 };
4442
45
-struct dma_buf_te_ioctl_status
46
-{
43
+struct dma_buf_te_ioctl_status {
4744 /* in */
4845 int fd; /* the dma_buf to query, only dma_buf objects exported by this driver is supported */
4946 /* out */
....@@ -52,8 +49,7 @@
5249 int cpu_mappings; /* number of cpu mappings (active 'mmap's) */
5350 };
5451
55
-struct dma_buf_te_ioctl_set_failing
56
-{
52
+struct dma_buf_te_ioctl_set_failing {
5753 /* in */
5854 int fd; /* the dma_buf to set failure mode for, only dma_buf objects exported by this driver is supported */
5955
....@@ -63,8 +59,7 @@
6359 int fail_mmap;
6460 };
6561
66
-struct dma_buf_te_ioctl_fill
67
-{
62
+struct dma_buf_te_ioctl_fill {
6863 int fd;
6964 unsigned int value;
7065 };