Searched refs:res (Results 1 – 6 of 6) sorted by relevance
/samples/hidraw/ |
D | hid-example.c | 46 int i, res, desc_size = 0; in main() local 69 res = ioctl(fd, HIDIOCGRDESCSIZE, &desc_size); in main() 70 if (res < 0) in main() 77 res = ioctl(fd, HIDIOCGRDESC, &rpt_desc); in main() 78 if (res < 0) { in main() 88 res = ioctl(fd, HIDIOCGRAWNAME(256), buf); in main() 89 if (res < 0) in main() 95 res = ioctl(fd, HIDIOCGRAWPHYS(256), buf); in main() 96 if (res < 0) in main() 102 res = ioctl(fd, HIDIOCGRAWINFO, &info); in main() [all …]
|
/samples/bpf/ |
D | xdp_sample.bpf.h | 89 static __always_inline void __read_once_size(const volatile void *p, void *res, int size) in __read_once_size() argument 92 case 1: *(__u8_alias_t *) res = *(volatile __u8_alias_t *) p; break; in __read_once_size() 93 case 2: *(__u16_alias_t *) res = *(volatile __u16_alias_t *) p; break; in __read_once_size() 94 case 4: *(__u32_alias_t *) res = *(volatile __u32_alias_t *) p; break; in __read_once_size() 95 case 8: *(__u64_alias_t *) res = *(volatile __u64_alias_t *) p; break; in __read_once_size() 98 __builtin_memcpy((void *)res, (const void *)p, size); in __read_once_size() 103 static __always_inline void __write_once_size(volatile void *p, void *res, int size) in __write_once_size() argument 106 case 1: *(volatile __u8_alias_t *) p = *(__u8_alias_t *) res; break; in __write_once_size() 107 case 2: *(volatile __u16_alias_t *) p = *(__u16_alias_t *) res; break; in __write_once_size() 108 case 4: *(volatile __u32_alias_t *) p = *(__u32_alias_t *) res; break; in __write_once_size() [all …]
|
D | cookie_uid_helper_example.c | 197 int res; in print_table() local 201 res = bpf_map_lookup_elem(map_fd, &curN, &curEntry); in print_table() 202 if (res < 0) { in print_table() 222 int res; in udp_client() local 238 res = getsockopt(s_send, SOL_SOCKET, SO_COOKIE, &cookie, &cookie_len); in udp_client() 239 if (res < 0) in udp_client() 241 res = bpf_map_lookup_elem(map_fd, &cookie, &dataEntry); in udp_client() 242 if (res != -1) in udp_client() 245 res = sendto(s_send, &message, sizeof(message), 0, in udp_client() 247 if (res == -1) in udp_client() [all …]
|
D | task_fd_query_user.c | 235 int err = -1, res, kfd, efd; in test_debug_fs_uprobe() local 244 res = snprintf(event_alias, sizeof(event_alias), "test_%d", getpid()); in test_debug_fs_uprobe() 245 CHECK_PERROR_RET(res < 0 || res >= sizeof(event_alias)); in test_debug_fs_uprobe() 247 res = snprintf(buf, sizeof(buf), "%c:%ss/%s %s:0x%lx", in test_debug_fs_uprobe() 250 CHECK_PERROR_RET(res < 0 || res >= sizeof(buf)); in test_debug_fs_uprobe()
|
D | xdp_rxq_info_user.c | 172 int res; in gettime() local 174 res = clock_gettime(CLOCK_MONOTONIC, &t); in gettime() 175 if (res < 0) { in gettime() 176 fprintf(stderr, "Error with gettimeofday! (%i)\n", res); in gettime()
|
D | xdp_sample_user.c | 196 int res; in gettime() local 198 res = clock_gettime(CLOCK_MONOTONIC, &t); in gettime() 199 if (res < 0) { in gettime() 200 fprintf(stderr, "Error with gettimeofday! (%i)\n", res); in gettime()
|