staging: gpib: Removing typedefs for ioctl API
cover staging: gpib: Removing typedefs for ioctl API
Moving typedefs to explicit structs as dictated by the Linux code style. Also removing typedefs for fundamental types as per Linux code style.
Reported by checkpatch.pl
* Patch 1 - Patch 16: Removes typedef for explicit structs.
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
* Patch 17 - Patch 21
Removing typedefs of fundamental types
Michael Rubin (21):
staging: gpib: Using struct gpib_board_type_ioctl
staging: gpib: Using struct gpib_read_write_ioctl
staging: gpib: Using struct gpib_open_dev_ioctl
staging: gpib: Using struct gpib_close_dev_ioctl
staging: gpib: Using struct gpib_serial_poll_ioctl
staging: gpib: Using struct gpib_eos_ioctl
staging: gpib: Using struct gpib_wait_ioctl
staging: gpib: Using struct gpib_online_ioctl
staging: gpib: Using struct gpib_spoll_bytes_ioctl
staging: gpib: Using struct gpib_board_info_ioctl
staging: gpib: Using struct gpib_select_pci_ioctl
staging: gpib: Using struct gpib_ppoll_config_ioctl`
staging: gpib: Using struct gpib_pad_ioctl
staging: gpib: Using struct gpib_sad_ioctl
staging: gpib: Using gpib_select_device_path_ioctl
staging: gpib: Using struct gpib_request_service2
staging: gpib: event_ioctl_t now short
staging: gpib: rsc_ioctl_t now int
staging: gpib: t1_delay_ioctl_t now unsigned int
staging: gpib: autospoll_ioctl_t now short
staging: gpib: local_ppoll_mode_ioctl_t now short
drivers/staging/gpib/common/gpib_os.c | 58 ++++++------ drivers/staging/gpib/uapi/gpib_ioctl.h | 118 ++++++++++++------------- 2 files changed, 86 insertions(+), 90 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/21 staging: gpib: Using struct gpib_board_type_ioctl
Using Linux code style for 'struct gpib_board_type_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 5 +++-- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-)
drivers/staging/gpib/common/gpib_os.c +3 -2
@@ -813,7 +813,7 @@ static int board_type_ioctl(struct gpib_file_private *file_priv, struct gpib_board *board, unsigned long arg) {struct list_head *list_ptr; -board_type_ioctl_t cmd; +struct gpib_board_type_ioctl cmd;int retval;if (!capable (CAP_SYS_ADMIN ))
@@ -821,7 +821,8 @@ static int board_type_ioctl(struct gpib_file_private *file_priv,if (board->online)return -EBUSY ; - retval =copy_from_user (&cmd, (void __user *)arg,sizeof (board_type_ioctl_t)); + retval =copy_from_user (&cmd, (void __user *)arg, +sizeof (struct gpib_board_type_ioctl ));if (retval)return retval;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -12,9 +12,9 @@#define GPIB_CODE 160 -typedef struct { +struct gpib_board_type_ioctl {char name[100 ]; -}board_type_ioctl_t ; +};/* argument for read/write/command ioctls */ typedef struct {
@@ -143,7 +143,7 @@ enum gpib_ioctl {CFCBASE =_IOW (GPIB_CODE ,21 , uint64_t), CFCIRQ = _IOW(GPIB_CODE, 22, unsigned int), CFCDMA = _IOW(GPIB_CODE, 23, unsigned int), -CFCBOARDTYPE =_IOW (GPIB_CODE ,24 , board_type_ioctl_t), + CFCBOARDTYPE = _IOW(GPIB_CODE, 24, struct gpib_board_type_ioctl),IBMUTEX =_IOW (GPIB_CODE ,26 , int), IBSPOLL_BYTES = _IOWR(GPIB_CODE, 27, spoll_bytes_ioctl_t),
Signature · 1 line
2.43.0
Re: [Patch v1 01/21] staging: gpib: Using struct gpib_board_type_ioctl
drivers/staging/gpib/uapi/gpib_ioctl.h line 17
Quoted 13 lines · Michael Rubin
drivers/staging/gpib/uapi/gpib_ioctl.h +2
-2@@ -12,9 +12,9 @@#define GPIB_CODE 160 -typedef struct { +struct gpib_board_type_ioctl {char name[100 ]; -}board_type_ioctl_t ; +};
This breaks user API so now user space can't compile. I don't think any of these 21 patches can be applied.
regards,
dan carpenter
Re: [Patch v1 01/21] staging: gpib: Using struct gpib_board_type_ioctl
Quoted 18 lines · Dan Carpenter
drivers/staging/gpib/uapi/gpib_ioctl.h line 17
Quoted 13 lines · Michael Rubin
drivers/staging/gpib/uapi/gpib_ioctl.h +2
-2@@ -12,9 +12,9 @@#define GPIB_CODE 160 -typedef struct { +struct gpib_board_type_ioctl {char name[100 ]; -}board_type_ioctl_t ; +};This breaks user API so now user space can't compile. I don't think any of these 21 patches can be applied.
Quoted 3 lines
regards,
dan carpenter
These patches are OK. I will make a new release of the userspace libraries with a compat include that defines the typedefs.
cheers,
-Dave
Re: [Patch v1 01/21] staging: gpib: Using struct gpib_board_type_ioctl
Quoted 19 lines · Dave Penkler
Quoted 18 lines · Dan Carpenter
drivers/staging/gpib/uapi/gpib_ioctl.h line 17
Quoted 13 lines · Michael Rubin
drivers/staging/gpib/uapi/gpib_ioctl.h +2
-2@@ -12,9 +12,9 @@#define GPIB_CODE 160 -typedef struct { +struct gpib_board_type_ioctl {char name[100 ]; -}board_type_ioctl_t ; +};This breaks user API so now user space can't compile. I don't think any of these 21 patches can be applied.
Quoted 6 lines
Quoted 3 lines
regards,
dan carpenterThese patches are OK. I will make a new release of the userspace libraries with a compat include that defines the typedefs.
Ah that's fine then. Thanks.
regards,
dan carpenter
PATCH 2/21 staging: gpib: Using struct gpib_read_write_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_read_write_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 6 +++--- drivers/staging/gpib/uapi/gpib_ioctl.h | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/gpib/common/gpib_os.c +3 -3
@@ -865,7 +865,7 @@ static int board_type_ioctl(struct gpib_file_private *file_priv,static int read_ioctl (struct gpib_file_private *file_priv,struct gpib_board *board,unsigned long arg) { -read_write_ioctl_t read_cmd; +struct gpib_read_write_ioctl read_cmd;u8 __user *userbuf;unsigned long remain;int end_flag =0 ;
@@ -940,7 +940,7 @@ static int read_ioctl(struct gpib_file_private *file_priv, struct gpib_board *bostatic int command_ioctl (struct gpib_file_private *file_priv,struct gpib_board *board,unsigned long arg) { -read_write_ioctl_t cmd; +struct gpib_read_write_ioctl cmd;u8 __user *userbuf;unsigned long remain;int retval;
@@ -1024,7 +1024,7 @@ static int command_ioctl(struct gpib_file_private *file_priv,static int write_ioctl (struct gpib_file_private *file_priv,struct gpib_board *board,unsigned long arg) { -read_write_ioctl_t write_cmd; +struct gpib_read_write_ioctl write_cmd;u8 __user *userbuf;unsigned long remain;int retval =0 ;
drivers/staging/gpib/uapi/gpib_ioctl.h +5 -5
@@ -17,13 +17,13 @@ struct gpib_board_type_ioctl { };/* argument for read/write/command ioctls */ -typedef struct { +struct gpib_read_write_ioctl {uint64_t buffer_ptr;unsigned int requested_transfer_count;unsigned int completed_transfer_count;int end;/* end flag return for reads, end io suppression request for cmd*/ int handle; -}read_write_ioctl_t ; +}; typedef struct { unsigned int handle;
@@ -121,9 +121,9 @@ typedef struct {/* Standard functions. */ enum gpib_ioctl { -IBRD =_IOWR (GPIB_CODE ,100 , read_write_ioctl_t), -IBWRT =_IOWR (GPIB_CODE ,101 , read_write_ioctl_t), -IBCMD =_IOWR (GPIB_CODE ,102 , read_write_ioctl_t), + IBRD = _IOWR(GPIB_CODE, 100, struct gpib_read_write_ioctl), + IBWRT = _IOWR(GPIB_CODE, 101, struct gpib_read_write_ioctl), + IBCMD = _IOWR(GPIB_CODE, 102, struct gpib_read_write_ioctl),IBOPENDEV =_IOWR (GPIB_CODE ,3 , open_dev_ioctl_t),IBCLOSEDEV =_IOW (GPIB_CODE ,4 , close_dev_ioctl_t),IBWAIT =_IOWR (GPIB_CODE ,5 , wait_ioctl_t),
Signature · 1 line
2.43.0
PATCH 3/21 staging: gpib: Using struct gpib_open_dev_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_open_dev_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1212,7 +1212,7 @@ static int cleanup_open_devices(struct gpib_file_private *file_priv, struct gpibstatic int open_dev_ioctl (struct file *filep,struct gpib_board *board,unsigned long arg) { -open_dev_ioctl_t open_dev_cmd; +struct gpib_open_dev_ioctl open_dev_cmd;int retval;struct gpib_file_private *file_priv = filep->private_data;int i;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -25,12 +25,12 @@ struct gpib_read_write_ioctl {int handle; }; -typedef struct { +struct gpib_open_dev_ioctl {unsigned int handle;unsigned int pad;int sad;unsigned is_board :1 ; -}open_dev_ioctl_t ; +}; typedef struct { unsigned int handle;
@@ -124,7 +124,7 @@ enum gpib_ioctl { IBRD = _IOWR(GPIB_CODE, 100, struct gpib_read_write_ioctl), IBWRT = _IOWR(GPIB_CODE, 101, struct gpib_read_write_ioctl), IBCMD = _IOWR(GPIB_CODE, 102, struct gpib_read_write_ioctl), -IBOPENDEV =_IOWR (GPIB_CODE ,3 , open_dev_ioctl_t), + IBOPENDEV = _IOWR(GPIB_CODE, 3, struct gpib_open_dev_ioctl),IBCLOSEDEV =_IOW (GPIB_CODE ,4 , close_dev_ioctl_t),IBWAIT =_IOWR (GPIB_CODE ,5 , wait_ioctl_t), IBRPP = _IOWR(GPIB_CODE, 6, uint8_t),
Signature · 1 line
2.43.0
PATCH 4/21 staging: gpib: Using struct gpib_close_dev_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_close_dev_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1262,7 +1262,7 @@ static int open_dev_ioctl(struct file *filep, struct gpib_board *board, unsignedstatic int close_dev_ioctl (struct file *filep,struct gpib_board *board,unsigned long arg) { -close_dev_ioctl_t cmd; +struct gpib_close_dev_ioctl cmd;struct gpib_file_private *file_priv = filep->private_data;int retval;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -32,9 +32,9 @@ struct gpib_open_dev_ioctl { unsigned is_board : 1; }; -typedef struct { +struct gpib_close_dev_ioctl {unsigned int handle; -}close_dev_ioctl_t ; +}; typedef struct { unsigned int pad;
@@ -125,7 +125,7 @@ enum gpib_ioctl { IBWRT = _IOWR(GPIB_CODE, 101, struct gpib_read_write_ioctl), IBCMD = _IOWR(GPIB_CODE, 102, struct gpib_read_write_ioctl), IBOPENDEV = _IOWR(GPIB_CODE, 3, struct gpib_open_dev_ioctl), -IBCLOSEDEV =_IOW (GPIB_CODE ,4 , close_dev_ioctl_t), + IBCLOSEDEV = _IOW(GPIB_CODE, 4, struct gpib_close_dev_ioctl),IBWAIT =_IOWR (GPIB_CODE ,5 , wait_ioctl_t), IBRPP = _IOWR(GPIB_CODE, 6, uint8_t),
Signature · 1 line
2.43.0
PATCH 5/21 staging: gpib: Using struct gpib_serial_poll_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_serial_poll_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1289,7 +1289,7 @@ static int close_dev_ioctl(struct file *filep, struct gpib_board *board, unsignestatic int serial_poll_ioctl (struct gpib_board *board,unsigned long arg) { -serial_poll_ioctl_t serial_cmd; +struct gpib_serial_poll_ioctl serial_cmd;int retval; retval =copy_from_user (&serial_cmd, (void __user *)arg,sizeof (serial_cmd));
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -36,11 +36,11 @@ struct gpib_close_dev_ioctl {unsigned int handle; }; -typedef struct { +struct gpib_serial_poll_ioctl {unsigned int pad;int sad;uint8_t status_byte; -}serial_poll_ioctl_t ; +}; typedef struct { int eos;
@@ -137,7 +137,7 @@ enum gpib_ioctl {IBPAD =_IOW (GPIB_CODE ,15 , pad_ioctl_t),IBSAD =_IOW (GPIB_CODE ,16 , sad_ioctl_t), IBTMO = _IOW(GPIB_CODE, 17, unsigned int), -IBRSP =_IOWR (GPIB_CODE ,18 , serial_poll_ioctl_t), + IBRSP = _IOWR(GPIB_CODE, 18, struct gpib_serial_poll_ioctl),IBEOS =_IOW (GPIB_CODE ,19 , eos_ioctl_t),IBRSV =_IOW (GPIB_CODE ,20 , uint8_t), CFCBASE = _IOW(GPIB_CODE, 21, uint64_t),
Signature · 1 line
2.43.0
PATCH 6/21 staging: gpib: Using struct gpib_eos_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_eos_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1508,7 +1508,7 @@ static int sad_ioctl(struct gpib_board *board, struct gpib_file_private *file_prstatic int eos_ioctl (struct gpib_board *board,unsigned long arg) { -eos_ioctl_t eos_cmd; +struct gpib_eos_ioctl eos_cmd;int retval; retval =copy_from_user (&eos_cmd, (void __user *)arg,sizeof (eos_cmd));
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -42,10 +42,10 @@ struct gpib_serial_poll_ioctl {uint8_t status_byte; }; -typedef struct { +struct gpib_eos_ioctl {int eos;int eos_flags; -}eos_ioctl_t ; +}; typedef struct { int handle;
@@ -138,7 +138,7 @@ enum gpib_ioctl {IBSAD =_IOW (GPIB_CODE ,16 , sad_ioctl_t), IBTMO = _IOW(GPIB_CODE, 17, unsigned int), IBRSP = _IOWR(GPIB_CODE, 18, struct gpib_serial_poll_ioctl), -IBEOS =_IOW (GPIB_CODE ,19 , eos_ioctl_t), + IBEOS = _IOW(GPIB_CODE, 19, struct gpib_eos_ioctl),IBRSV =_IOW (GPIB_CODE ,20 , uint8_t),CFCBASE =_IOW (GPIB_CODE ,21 , uint64_t), CFCIRQ = _IOW(GPIB_CODE, 22, unsigned int),
Signature · 1 line
2.43.0
PATCH 7/21 staging: gpib: Using struct gpib_wait_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_wait_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1311,7 +1311,7 @@ static int serial_poll_ioctl(struct gpib_board *board, unsigned long arg)static int wait_ioctl (struct gpib_file_private *file_priv,struct gpib_board *board,unsigned long arg) { -wait_ioctl_t wait_cmd; +struct gpib_wait_ioctl wait_cmd;int retval;struct gpib_descriptor *desc;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -47,7 +47,7 @@ struct gpib_eos_ioctl {int eos_flags; }; -typedef struct { +struct gpib_wait_ioctl {int handle;int wait_mask;int clear_mask;
@@ -56,7 +56,7 @@ typedef struct {int pad;int sad;unsigned int usec_timeout; -} wait_ioctl_t; +}; typedef struct { uint64_t init_data_ptr;
@@ -126,7 +126,7 @@ enum gpib_ioctl { IBCMD = _IOWR(GPIB_CODE, 102, struct gpib_read_write_ioctl), IBOPENDEV = _IOWR(GPIB_CODE, 3, struct gpib_open_dev_ioctl), IBCLOSEDEV = _IOW(GPIB_CODE, 4, struct gpib_close_dev_ioctl), -IBWAIT =_IOWR (GPIB_CODE ,5 , wait_ioctl_t), + IBWAIT = _IOWR(GPIB_CODE, 5, struct gpib_wait_ioctl),IBRPP =_IOWR (GPIB_CODE ,6 , uint8_t), IBSIC = _IOW(GPIB_CODE, 9, unsigned int),
Signature · 1 line
2.43.0
PATCH 8/21 staging: gpib: Using struct gpib_online_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_online_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1353,7 +1353,7 @@ static int parallel_poll_ioctl(struct gpib_board *board, unsigned long arg)static int online_ioctl (struct gpib_board *board,unsigned long arg) { -online_ioctl_t online_cmd; +struct gpib_online_ioctl online_cmd;int retval;void __user *init_data =NULL ;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -58,11 +58,11 @@ struct gpib_wait_ioctl {unsigned int usec_timeout; }; -typedef struct { +struct gpib_online_ioctl {uint64_t init_data_ptr;int init_data_length;int online; -}online_ioctl_t ; +}; typedef struct { unsigned int num_bytes;
@@ -158,7 +158,7 @@ enum gpib_ioctl {IBLOC =_IO (GPIB_CODE ,36 ),IBAUTOSPOLL =_IOW (GPIB_CODE ,38 , autospoll_ioctl_t), -IBONL =_IOW (GPIB_CODE ,39 , online_ioctl_t), + IBONL = _IOW(GPIB_CODE, 39, struct gpib_online_ioctl),IBPP2_SET =_IOW (GPIB_CODE ,40 , local_ppoll_mode_ioctl_t),IBPP2_GET =_IOR (GPIB_CODE ,41 , local_ppoll_mode_ioctl_t), IBSELECT_DEVICE_PATH = _IOW(GPIB_CODE, 43, select_device_path_ioctl_t),
Signature · 1 line
2.43.0
PATCH 9/21 staging: gpib: Using struct gpib_spoll_bytes_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_spoll_bytes_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1095,7 +1095,7 @@ static int write_ioctl(struct gpib_file_private *file_priv, struct gpib_board *bstatic int status_bytes_ioctl (struct gpib_board *board,unsigned long arg) {struct gpib_status_queue *device; -spoll_bytes_ioctl_t cmd; +struct gpib_spoll_bytes_ioctl cmd;int retval; retval =copy_from_user (&cmd, (void __user *)arg,sizeof (cmd));
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -64,11 +64,11 @@ struct gpib_online_ioctl {int online; }; -typedef struct { +struct gpib_spoll_bytes_ioctl {unsigned int num_bytes;unsigned int pad;int sad; -}spoll_bytes_ioctl_t ; +}; typedef struct { unsigned int pad;
@@ -146,7 +146,7 @@ enum gpib_ioctl { CFCBOARDTYPE = _IOW(GPIB_CODE, 24, struct gpib_board_type_ioctl),IBMUTEX =_IOW (GPIB_CODE ,26 , int), -IBSPOLL_BYTES =_IOWR (GPIB_CODE ,27 , spoll_bytes_ioctl_t), + IBSPOLL_BYTES = _IOWR(GPIB_CODE, 27, struct gpib_spoll_bytes_ioctl),IBPPC =_IOW (GPIB_CODE ,28 , ppoll_config_ioctl_t), IBBOARD_INFO = _IOR(GPIB_CODE, 29, board_info_ioctl_t),
Signature · 1 line
2.43.0
PATCH 10/21 staging: gpib: Using struct gpib_board_info_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_board_info_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1762,7 +1762,7 @@ static int query_board_rsv_ioctl(struct gpib_board *board, unsigned long arg)static int board_info_ioctl (const struct gpib_board *board,unsigned long arg) { -board_info_ioctl_t info; +struct gpib_board_info_ioctl info;int retval; info.pad = board->pad;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -70,7 +70,7 @@ struct gpib_spoll_bytes_ioctl {int sad; }; -typedef struct { +struct gpib_board_info_ioctl {unsigned int pad;int sad;int parallel_poll_configuration;
@@ -79,7 +79,7 @@ typedef struct {unsigned int t1_delay; unsigned ist : 1; unsigned no_7_bit_eos : 1; -} board_info_ioctl_t; +}; typedef struct { int pci_bus;
@@ -148,7 +148,7 @@ enum gpib_ioctl {IBMUTEX =_IOW (GPIB_CODE ,26 , int), IBSPOLL_BYTES = _IOWR(GPIB_CODE, 27, struct gpib_spoll_bytes_ioctl),IBPPC =_IOW (GPIB_CODE ,28 , ppoll_config_ioctl_t), -IBBOARD_INFO =_IOR (GPIB_CODE ,29 , board_info_ioctl_t), + IBBOARD_INFO = _IOR(GPIB_CODE, 29, struct gpib_board_info_ioctl),IBQUERY_BOARD_RSV =_IOR (GPIB_CODE ,31 , int), IBSELECT_PCI = _IOWR(GPIB_CODE, 32, select_pci_ioctl_t),
Signature · 1 line
2.43.0
PATCH 11/21 staging: gpib: Using struct gpib_select_pci_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_select_pci_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1797,7 +1797,7 @@ static int interface_clear_ioctl(struct gpib_board *board, unsigned long arg)static int select_pci_ioctl (struct gpib_board_config *config,unsigned long arg) { -select_pci_ioctl_t selection; +struct gpib_select_pci_ioctl selection;int retval;if (!capable (CAP_SYS_ADMIN ))
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -81,10 +81,10 @@ struct gpib_board_info_ioctl { unsigned no_7_bit_eos : 1; }; -typedef struct { +struct gpib_select_pci_ioctl {int pci_bus;int pci_slot; -}select_pci_ioctl_t ; +}; typedef struct { uint8_t config;
@@ -151,7 +151,7 @@ enum gpib_ioctl { IBBOARD_INFO = _IOR(GPIB_CODE, 29, struct gpib_board_info_ioctl),IBQUERY_BOARD_RSV =_IOR (GPIB_CODE ,31 , int), -IBSELECT_PCI =_IOWR (GPIB_CODE ,32 , select_pci_ioctl_t), + IBSELECT_PCI = _IOWR(GPIB_CODE, 32, struct gpib_select_pci_ioctl),IBEVENT =_IOR (GPIB_CODE ,33 , event_ioctl_t),IBRSC =_IOW (GPIB_CODE ,34 , rsc_ioctl_t), IB_T1_DELAY = _IOW(GPIB_CODE, 35, t1_delay_ioctl_t),
Signature · 1 line
2.43.0
PATCH 12/21 staging: gpib: Using struct gpib_ppoll_config_ioctl`
In reply to Michael RubinUsing Linux code style for 'struct gpib_ppoll_config_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1692,7 +1692,7 @@ static int timeout_ioctl(struct gpib_board *board, unsigned long arg)static int ppc_ioctl (struct gpib_board *board,unsigned long arg) { -ppoll_config_ioctl_t cmd; +struct gpib_ppoll_config_ioctl cmd;int retval; retval =copy_from_user (&cmd, (void __user *)arg,sizeof (cmd));
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -86,11 +86,11 @@ struct gpib_select_pci_ioctl {int pci_slot; }; -typedef struct { +struct gpib_ppoll_config_ioctl {uint8_t config;unsigned set_ist :1 ;unsigned clear_ist :1 ; -}ppoll_config_ioctl_t ; +}; typedef struct { unsigned int handle;
@@ -147,7 +147,7 @@ enum gpib_ioctl {IBMUTEX =_IOW (GPIB_CODE ,26 , int), IBSPOLL_BYTES = _IOWR(GPIB_CODE, 27, struct gpib_spoll_bytes_ioctl), -IBPPC =_IOW (GPIB_CODE ,28 , ppoll_config_ioctl_t), + IBPPC = _IOW(GPIB_CODE, 28, struct gpib_ppoll_config_ioctl), IBBOARD_INFO = _IOR(GPIB_CODE, 29, struct gpib_board_info_ioctl), IBQUERY_BOARD_RSV = _IOR(GPIB_CODE, 31, int),
Signature · 1 line
2.43.0
PATCH 13/21 staging: gpib: Using struct gpib_pad_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_pad_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1438,7 +1438,7 @@ static int line_status_ioctl(struct gpib_board *board, unsigned long arg)static int pad_ioctl (struct gpib_board *board,struct gpib_file_private *file_priv,unsigned long arg) { -pad_ioctl_t cmd; +struct gpib_pad_ioctl cmd;int retval;struct gpib_descriptor *desc;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -92,10 +92,10 @@ struct gpib_ppoll_config_ioctl { unsigned clear_ist : 1; }; -typedef struct { +struct gpib_pad_ioctl {unsigned int handle;unsigned int pad; -}pad_ioctl_t ; +}; typedef struct { unsigned int handle;
@@ -134,7 +134,7 @@ enum gpib_ioctl {IBGTS =_IO (GPIB_CODE ,11 ),IBCAC =_IOW (GPIB_CODE ,12 , int),IBLINES =_IOR (GPIB_CODE ,14 , short), -IBPAD =_IOW (GPIB_CODE ,15 , pad_ioctl_t), + IBPAD = _IOW(GPIB_CODE, 15, struct gpib_pad_ioctl),IBSAD =_IOW (GPIB_CODE ,16 , sad_ioctl_t), IBTMO = _IOW(GPIB_CODE, 17, unsigned int), IBRSP = _IOWR(GPIB_CODE, 18, struct gpib_serial_poll_ioctl),
Signature · 1 line
2.43.0
PATCH 14/21 staging: gpib: Using struct gpib_sad_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_sad_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1474,7 +1474,7 @@ static int pad_ioctl(struct gpib_board *board, struct gpib_file_private *file_prstatic int sad_ioctl (struct gpib_board *board,struct gpib_file_private *file_priv,unsigned long arg) { -sad_ioctl_t cmd; +struct gpib_sad_ioctl cmd;int retval;struct gpib_descriptor *desc;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -97,10 +97,10 @@ struct gpib_pad_ioctl {unsigned int pad; }; -typedef struct { +struct gpib_sad_ioctl {unsigned int handle;int sad; -}sad_ioctl_t ; +};// select a piece of hardware to attach by its sysfs device path typedef struct {
@@ -135,7 +135,7 @@ enum gpib_ioctl {IBCAC =_IOW (GPIB_CODE ,12 , int),IBLINES =_IOR (GPIB_CODE ,14 , short), IBPAD = _IOW(GPIB_CODE, 15, struct gpib_pad_ioctl), -IBSAD =_IOW (GPIB_CODE ,16 , sad_ioctl_t), + IBSAD = _IOW(GPIB_CODE, 16, struct gpib_sad_ioctl), IBTMO = _IOW(GPIB_CODE, 17, unsigned int), IBRSP = _IOWR(GPIB_CODE, 18, struct gpib_serial_poll_ioctl), IBEOS = _IOW(GPIB_CODE, 19, struct gpib_eos_ioctl),
Signature · 1 line
2.43.0
PATCH 15/21 staging: gpib: Using gpib_select_device_path_ioctl
In reply to Michael RubinUsing Linux code style for 'struct gpib_select_device_path_ioctl' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 7 ++++--- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-)
drivers/staging/gpib/common/gpib_os.c +4 -3
@@ -1815,17 +1815,18 @@ static int select_pci_ioctl(struct gpib_board_config *config, unsigned long arg)static int select_device_path_ioctl (struct gpib_board_config *config,unsigned long arg) { -select_device_path_ioctl_t *selection; +struct gpib_select_device_path_ioctl *selection;int retval;if (!capable (CAP_SYS_ADMIN ))return -EPERM ; - selection =vmalloc (sizeof (select_device_path_ioctl_t)); + selection =vmalloc (sizeof (struct gpib_select_device_path_ioctl ));if (!selection)return -ENOMEM ; - retval =copy_from_user (selection, (void __user *)arg,sizeof (select_device_path_ioctl_t)); + retval =copy_from_user (selection, (void __user *)arg, +sizeof (struct gpib_select_device_path_ioctl ));if (retval) {vfree (selection);return -EFAULT ;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -103,9 +103,9 @@ struct gpib_sad_ioctl { };// select a piece of hardware to attach by its sysfs device path -typedef struct { +struct gpib_select_device_path_ioctl {char device_path[0x1000 ]; -}select_device_path_ioctl_t ; +};typedef short event_ioctl_t ;typedef int rsc_ioctl_t ;
@@ -161,7 +161,7 @@ enum gpib_ioctl { IBONL = _IOW(GPIB_CODE, 39, struct gpib_online_ioctl),IBPP2_SET =_IOW (GPIB_CODE ,40 , local_ppoll_mode_ioctl_t),IBPP2_GET =_IOR (GPIB_CODE ,41 , local_ppoll_mode_ioctl_t), -IBSELECT_DEVICE_PATH =_IOW (GPIB_CODE ,43 , select_device_path_ioctl_t), + IBSELECT_DEVICE_PATH = _IOW(GPIB_CODE, 43, struct gpib_select_device_path_ioctl),// 44 was IBSELECT_SERIAL_NUMBER IBRSV2 = _IOW(GPIB_CODE, 45, request_service2_t) };
Signature · 1 line
2.43.0
PATCH 16/21 staging: gpib: Using struct gpib_request_service2
In reply to Michael RubinUsing Linux code style for 'struct gpib_request_service2' to remove typedef.
Adhering to Linux code style.
Reported by checkpatch.pl
In general, a pointer, or a struct that has elements that can reasonably be directly accessed should never be a typedef.
--- drivers/staging/gpib/common/gpib_os.c | 4 ++-- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-)
drivers/staging/gpib/common/gpib_os.c +2 -2
@@ -1532,11 +1532,11 @@ static int request_service_ioctl(struct gpib_board *board, unsigned long arg)static int request_service2_ioctl (struct gpib_board *board,unsigned long arg) { -request_service2_t request_service2_cmd; +struct gpib_request_service2 request_service2_cmd;int retval; retval =copy_from_user (&request_service2_cmd, (void __user *)arg, -sizeof (request_service2_t)); +sizeof (struct gpib_request_service2 ));if (retval)return -EFAULT ;
drivers/staging/gpib/uapi/gpib_ioctl.h +3 -3
@@ -114,10 +114,10 @@ typedef short autospoll_ioctl_t;typedef short local_ppoll_mode_ioctl_t ;// update status byte and request service -typedef struct { +struct gpib_request_service2 {uint8_t status_byte;int new_reason_for_service; -}request_service2_t ; +};/* Standard functions. */ enum gpib_ioctl {
@@ -163,7 +163,7 @@ enum gpib_ioctl {IBPP2_GET =_IOR (GPIB_CODE ,41 , local_ppoll_mode_ioctl_t), IBSELECT_DEVICE_PATH = _IOW(GPIB_CODE, 43, struct gpib_select_device_path_ioctl),// 44 was IBSELECT_SERIAL_NUMBER -IBRSV2 =_IOW (GPIB_CODE ,45 , request_service2_t) + IBRSV2 = _IOW(GPIB_CODE, 45, struct gpib_request_service2) };#endif /* _GPIB_IOCTL_H */
Signature · 1 line
2.43.0
PATCH 17/21 staging: gpib: event_ioctl_t now short
In reply to Michael RubinUsing Linux code style to replace typedef event_ioctl_t with type short.
Adhering to Linux code style.
Reported by checkpatch.pl
WARNING: do not add new typedefs
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1951,7 +1951,7 @@ int pop_gpib_event(struct gpib_board *board, struct gpib_event_queue *queue, shostatic int event_ioctl (struct gpib_board *board,unsigned long arg) { -event_ioctl_t user_event; +short user_event;int retval;short event;
drivers/staging/gpib/uapi/gpib_ioctl.h +1 -2
@@ -107,7 +107,6 @@ struct gpib_select_device_path_ioctl {char device_path[0x1000 ]; }; -typedef short event_ioctl_t ;typedef int rsc_ioctl_t ;typedef unsigned int t1_delay_ioctl_t ;typedef short autospoll_ioctl_t ;
@@ -152,7 +151,7 @@ enum gpib_ioctl {IBQUERY_BOARD_RSV =_IOR (GPIB_CODE ,31 , int), IBSELECT_PCI = _IOWR(GPIB_CODE, 32, struct gpib_select_pci_ioctl), -IBEVENT =_IOR (GPIB_CODE ,33 , event_ioctl_t), +IBEVENT =_IOR (GPIB_CODE ,33 , short),IBRSC =_IOW (GPIB_CODE ,34 , rsc_ioctl_t),IB_T1_DELAY =_IOW (GPIB_CODE ,35 , t1_delay_ioctl_t), IBLOC = _IO(GPIB_CODE, 36),
Signature · 1 line
2.43.0
PATCH 18/21 staging: gpib: rsc_ioctl_t now int
In reply to Michael RubinUsing Linux code style to replace typedef rsc_ioctl_t with type int.
Adhering to Linux code style.
Reported by checkpatch.pl
WARNING: do not add new typedefs
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1970,7 +1970,7 @@ static int event_ioctl(struct gpib_board *board, unsigned long arg)static int request_system_control_ioctl (struct gpib_board *board,unsigned long arg) { -rsc_ioctl_t request_control; +int request_control;int retval; retval =copy_from_user (&request_control, (void __user *)arg,sizeof (request_control));
drivers/staging/gpib/uapi/gpib_ioctl.h +1 -2
@@ -107,7 +107,6 @@ struct gpib_select_device_path_ioctl {char device_path[0x1000 ]; }; -typedef int rsc_ioctl_t ;typedef unsigned int t1_delay_ioctl_t ;typedef short autospoll_ioctl_t ;typedef short local_ppoll_mode_ioctl_t ;
@@ -152,7 +151,7 @@ enum gpib_ioctl {IBQUERY_BOARD_RSV =_IOR (GPIB_CODE ,31 , int), IBSELECT_PCI = _IOWR(GPIB_CODE, 32, struct gpib_select_pci_ioctl),IBEVENT =_IOR (GPIB_CODE ,33 , short), -IBRSC =_IOW (GPIB_CODE ,34 , rsc_ioctl_t), +IBRSC =_IOW (GPIB_CODE ,34 , int),IB_T1_DELAY =_IOW (GPIB_CODE ,35 , t1_delay_ioctl_t), IBLOC = _IO(GPIB_CODE, 36),
Signature · 1 line
2.43.0
PATCH 19/21 staging: gpib: t1_delay_ioctl_t now unsigned int
In reply to Michael RubinUsing Linux code style to replace typedef t1_delay_ioctl_t with type unsigned int.
Adhering to Linux code style.
Reported by checkpatch.pl
WARNING: do not add new typedefs
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1984,7 +1984,7 @@ static int request_system_control_ioctl(struct gpib_board *board, unsigned longstatic int t1_delay_ioctl (struct gpib_board *board,unsigned long arg) { -t1_delay_ioctl_t cmd; +unsigned int cmd;unsigned int delay;int retval;
drivers/staging/gpib/uapi/gpib_ioctl.h +1 -2
@@ -107,7 +107,6 @@ struct gpib_select_device_path_ioctl {char device_path[0x1000 ]; }; -typedef unsigned int t1_delay_ioctl_t ;typedef short autospoll_ioctl_t ;typedef short local_ppoll_mode_ioctl_t ;
@@ -152,7 +151,7 @@ enum gpib_ioctl { IBSELECT_PCI = _IOWR(GPIB_CODE, 32, struct gpib_select_pci_ioctl),IBEVENT =_IOR (GPIB_CODE ,33 , short),IBRSC =_IOW (GPIB_CODE ,34 , int), -IB_T1_DELAY =_IOW (GPIB_CODE ,35 , t1_delay_ioctl_t), + IB_T1_DELAY = _IOW(GPIB_CODE, 35, unsigned int),IBLOC =_IO (GPIB_CODE ,36 ), IBAUTOSPOLL = _IOW(GPIB_CODE, 38, autospoll_ioctl_t),
Signature · 1 line
2.43.0
PATCH 20/21 staging: gpib: autospoll_ioctl_t now short
In reply to Michael RubinUsing Linux code style to replace typedef autospoll_ioctl_t with type short.
Adhering to Linux code style.
Reported by checkpatch.pl
WARNING: do not add new typedefs
--- drivers/staging/gpib/common/gpib_os.c | 2 +- drivers/staging/gpib/uapi/gpib_ioctl.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/staging/gpib/common/gpib_os.c +1 -1
@@ -1600,7 +1600,7 @@ static int dma_ioctl(struct gpib_board_config *config, unsigned long arg)static int autospoll_ioctl (struct gpib_board *board,struct gpib_file_private *file_priv,unsigned long arg) { -autospoll_ioctl_t enable; +short enable;int retval;struct gpib_descriptor *desc;
drivers/staging/gpib/uapi/gpib_ioctl.h +1 -2
@@ -107,7 +107,6 @@ struct gpib_select_device_path_ioctl {char device_path[0x1000 ]; }; -typedef short autospoll_ioctl_t ;typedef short local_ppoll_mode_ioctl_t ;// update status byte and request service
@@ -154,7 +153,7 @@ enum gpib_ioctl { IB_T1_DELAY = _IOW(GPIB_CODE, 35, unsigned int),IBLOC =_IO (GPIB_CODE ,36 ), -IBAUTOSPOLL =_IOW (GPIB_CODE ,38 , autospoll_ioctl_t), +IBAUTOSPOLL =_IOW (GPIB_CODE ,38 , short), IBONL = _IOW(GPIB_CODE, 39, struct gpib_online_ioctl),IBPP2_SET =_IOW (GPIB_CODE ,40 , local_ppoll_mode_ioctl_t), IBPP2_GET = _IOR(GPIB_CODE, 41, local_ppoll_mode_ioctl_t),
Signature · 1 line
2.43.0
PATCH 21/21 staging: gpib: local_ppoll_mode_ioctl_t now short
In reply to Michael RubinUsing Linux code style to replace typedef local_ppoll_mode_ioctl_t with type short.
Adhering to Linux code style.
Reported by checkpatch.pl
WARNING: do not add new typedefs
--- drivers/staging/gpib/common/gpib_os.c | 4 ++-- drivers/staging/gpib/uapi/gpib_ioctl.h | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-)
drivers/staging/gpib/common/gpib_os.c +2 -2
@@ -1718,7 +1718,7 @@ static int ppc_ioctl(struct gpib_board *board, unsigned long arg)static int set_local_ppoll_mode_ioctl (struct gpib_board *board,unsigned long arg) { -local_ppoll_mode_ioctl_t cmd; +short cmd;int retval; retval =copy_from_user (&cmd, (void __user *)arg,sizeof (cmd));
@@ -1735,7 +1735,7 @@ static int set_local_ppoll_mode_ioctl(struct gpib_board *board, unsigned long arstatic int get_local_ppoll_mode_ioctl (struct gpib_board *board,unsigned long arg) { -local_ppoll_mode_ioctl_t cmd; +short cmd;int retval; cmd = board->local_ppoll_mode;
drivers/staging/gpib/uapi/gpib_ioctl.h +2 -4
@@ -107,8 +107,6 @@ struct gpib_select_device_path_ioctl {char device_path[0x1000 ]; }; -typedef short local_ppoll_mode_ioctl_t ; -// update status byte and request service struct gpib_request_service2 {uint8_t status_byte;
@@ -155,8 +153,8 @@ enum gpib_ioctl {IBAUTOSPOLL =_IOW (GPIB_CODE ,38 , short), IBONL = _IOW(GPIB_CODE, 39, struct gpib_online_ioctl), -IBPP2_SET =_IOW (GPIB_CODE ,40 , local_ppoll_mode_ioctl_t), -IBPP2_GET =_IOR (GPIB_CODE ,41 , local_ppoll_mode_ioctl_t), +IBPP2_SET =_IOW (GPIB_CODE ,40 , short), +IBPP2_GET =_IOR (GPIB_CODE ,41 , short), IBSELECT_DEVICE_PATH = _IOW(GPIB_CODE, 43, struct gpib_select_device_path_ioctl),// 44 was IBSELECT_SERIAL_NUMBER IBRSV2 = _IOW(GPIB_CODE, 45, struct gpib_request_service2)
Signature · 1 line
2.43.0