/third_party/ltp/testcases/kernel/syscalls/utils/ |
D | compat_tst_16.h | 41 # define TST_CREATE_SYSCALL(sys_name, ...) ({ \ argument 42 if (__NR_##sys_name##32 != __LTP__NR_INVALID_SYSCALL) { \ 43 return tst_syscall(__NR_##sys_name, ##__VA_ARGS__); \ 47 "platform", #sys_name); \ 52 # define TST_CREATE_SYSCALL(sys_name, ...) ({\ argument 53 return sys_name(__VA_ARGS__); \ 57 #define UID16_CHECK(uid, sys_name) ({ \ argument 61 "version of %s()", uid, #uid, #sys_name); \ 64 #define GID16_CHECK(gid, sys_name) ({ \ argument 68 "version of %s()", gid, #gid, #sys_name); \
|
D | compat_16.h | 46 # define LTP_CREATE_SYSCALL(sys_name, cleanup, ...) \ argument 47 if (__NR_##sys_name##32 != __LTP__NR_INVALID_SYSCALL) { \ 48 return ltp_syscall(__NR_##sys_name, ##__VA_ARGS__); \ 52 "platform", #sys_name); \ 55 # define LTP_CREATE_SYSCALL(sys_name, cleanup, ...) \ argument 57 return sys_name(__VA_ARGS__) 60 #define UID16_CHECK(uid, sys_name, cleanup) \ argument 64 "of %s()", uid, #uid, #sys_name); \ 67 #define GID16_CHECK(gid, sys_name, cleanup) \ argument 71 "of %s()", gid, #gid, #sys_name); \
|
/third_party/libusb/libusb/os/ |
D | linux_udev.c | 211 uint8_t *devaddr, const char **sys_name) { in udev_device_info() argument 219 *sys_name = udev_device_get_sysname(udev_dev); in udev_device_info() 220 if (!*sys_name) { in udev_device_info() 225 dev_node, *sys_name, -1); in udev_device_info() 231 const char *sys_name = NULL; in udev_hotplug_event() local 244 r = udev_device_info(NULL, detached, udev_dev, &busnum, &devaddr, &sys_name); in udev_hotplug_event() 252 linux_hotplug_enumerate(busnum, devaddr, sys_name); in udev_hotplug_event() 270 const char *sys_name; in linux_udev_scan_devices() local 293 r = udev_device_info(ctx, 0, udev_dev, &busnum, &devaddr, &sys_name); in linux_udev_scan_devices() 299 linux_enumerate_device(ctx, busnum, devaddr, sys_name); in linux_udev_scan_devices()
|
D | linux_netlink.c | 190 const char **sys_name, uint8_t *busnum, uint8_t *devaddr) in linux_netlink_parse() argument 196 *sys_name = NULL; in linux_netlink_parse() 276 *sys_name = slash + 1; in linux_netlink_parse() 286 const char *sys_name = NULL; in linux_netlink_read_message() local 331 r = linux_netlink_parse(msg_buffer, (size_t)len, &detached, &sys_name, &busnum, &devaddr); in linux_netlink_read_message() 336 busnum, devaddr, sys_name, detached ? "yes" : "no"); in linux_netlink_read_message() 342 linux_hotplug_enumerate(busnum, devaddr, sys_name); in linux_netlink_read_message()
|
D | linux_usbfs.h | 202 void linux_hotplug_enumerate(uint8_t busnum, uint8_t devaddr, const char *sys_name); 207 const char *sys_name, int fd);
|
D | linux_usbfs.c | 588 const char *sys_name, int fd) in linux_get_device_address() argument 593 usbi_dbg("getting address for device: %s detached: %d", sys_name, detached); in linux_get_device_address() 596 if (!sysfs_available || detached || !sys_name) { in linux_get_device_address() 622 usbi_dbg("scan %s", sys_name); in linux_get_device_address() 624 r = read_sysfs_attr(ctx, sys_name, "busnum", UINT8_MAX, &sysfs_val); in linux_get_device_address() 629 r = read_sysfs_attr(ctx, sys_name, "devnum", UINT8_MAX, &sysfs_val); in linux_get_device_address() 1122 void linux_hotplug_enumerate(uint8_t busnum, uint8_t devaddr, const char *sys_name) in linux_hotplug_enumerate() argument 1128 linux_enumerate_device(ctx, busnum, devaddr, sys_name); in linux_hotplug_enumerate()
|
/third_party/ltp/testcases/commands/sysctl/ |
D | sysctl02.sh | 24 sys_name="fs.file-max" 49 tst_res TINFO "trying to set $sys_name=$test_value" 50 sysctl -w -q $sys_name=$test_value 2>/dev/null 66 ROD sysctl -w -q $sys_name=0 77 [ -n "$orig_value" ] && sysctl -w -q $sys_name=$orig_value
|