cuse_ioctl.h (ee7b0571c2c18bdec848ed2044223cc88db29bd8) cuse_ioctl.h (9fb69c9d9d05d902ff05257ad85c0c5640bb0b5c)
1/* $FreeBSD$ */
2/*-
3 * Copyright (c) 2014 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 39 unchanged lines hidden (view full) ---

48struct cuse_alloc_info {
49 unsigned long page_count;
50 unsigned long alloc_nr;
51};
52
53struct cuse_command {
54 struct cuse_dev *dev;
55 unsigned long fflags;
1/* $FreeBSD$ */
2/*-
3 * Copyright (c) 2014 Hans Petter Selasky. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 39 unchanged lines hidden (view full) ---

48struct cuse_alloc_info {
49 unsigned long page_count;
50 unsigned long alloc_nr;
51};
52
53struct cuse_command {
54 struct cuse_dev *dev;
55 unsigned long fflags;
56 unsigned long per_file_handle;
56 uintptr_t per_file_handle;
57 unsigned long data_pointer;
58 unsigned long argument;
59 unsigned long command; /* see CUSE_CMD_XXX */
60};
61
62struct cuse_create_dev {
63 struct cuse_dev *dev;
64 uid_t user_id;

--- 6 unchanged lines hidden (view full) ---

71
72#define CUSE_IOCTL_GET_COMMAND _IOR('C', 0, struct cuse_command)
73#define CUSE_IOCTL_WRITE_DATA _IOW('C', 1, struct cuse_data_chunk)
74#define CUSE_IOCTL_READ_DATA _IOW('C', 2, struct cuse_data_chunk)
75#define CUSE_IOCTL_SYNC_COMMAND _IOW('C', 3, int)
76#define CUSE_IOCTL_GET_SIG _IOR('C', 4, int)
77#define CUSE_IOCTL_ALLOC_MEMORY _IOW('C', 5, struct cuse_alloc_info)
78#define CUSE_IOCTL_FREE_MEMORY _IOW('C', 6, struct cuse_alloc_info)
57 unsigned long data_pointer;
58 unsigned long argument;
59 unsigned long command; /* see CUSE_CMD_XXX */
60};
61
62struct cuse_create_dev {
63 struct cuse_dev *dev;
64 uid_t user_id;

--- 6 unchanged lines hidden (view full) ---

71
72#define CUSE_IOCTL_GET_COMMAND _IOR('C', 0, struct cuse_command)
73#define CUSE_IOCTL_WRITE_DATA _IOW('C', 1, struct cuse_data_chunk)
74#define CUSE_IOCTL_READ_DATA _IOW('C', 2, struct cuse_data_chunk)
75#define CUSE_IOCTL_SYNC_COMMAND _IOW('C', 3, int)
76#define CUSE_IOCTL_GET_SIG _IOR('C', 4, int)
77#define CUSE_IOCTL_ALLOC_MEMORY _IOW('C', 5, struct cuse_alloc_info)
78#define CUSE_IOCTL_FREE_MEMORY _IOW('C', 6, struct cuse_alloc_info)
79#define CUSE_IOCTL_SET_PFH _IOW('C', 7, unsigned long)
79#define CUSE_IOCTL_SET_PFH _IOW('C', 7, uintptr_t)
80#define CUSE_IOCTL_CREATE_DEV _IOW('C', 8, struct cuse_create_dev)
81#define CUSE_IOCTL_DESTROY_DEV _IOW('C', 9, struct cuse_dev *)
82#define CUSE_IOCTL_ALLOC_UNIT _IOR('C',10, int)
83#define CUSE_IOCTL_FREE_UNIT _IOW('C',11, int)
84#define CUSE_IOCTL_SELWAKEUP _IOW('C',12, int)
85#define CUSE_IOCTL_ALLOC_UNIT_BY_ID _IOWR('C',13, int)
86#define CUSE_IOCTL_FREE_UNIT_BY_ID _IOWR('C',14, int)
87
88#endif /* _CUSE_IOCTL_H_ */
80#define CUSE_IOCTL_CREATE_DEV _IOW('C', 8, struct cuse_create_dev)
81#define CUSE_IOCTL_DESTROY_DEV _IOW('C', 9, struct cuse_dev *)
82#define CUSE_IOCTL_ALLOC_UNIT _IOR('C',10, int)
83#define CUSE_IOCTL_FREE_UNIT _IOW('C',11, int)
84#define CUSE_IOCTL_SELWAKEUP _IOW('C',12, int)
85#define CUSE_IOCTL_ALLOC_UNIT_BY_ID _IOWR('C',13, int)
86#define CUSE_IOCTL_FREE_UNIT_BY_ID _IOWR('C',14, int)
87
88#endif /* _CUSE_IOCTL_H_ */