Searched refs:req (Results 1 – 4 of 4) sorted by relevance
/samples/seccomp/ |
D | user-trap.c | 104 static int handle_req(struct seccomp_notif *req, in handle_req() argument 110 resp->id = req->id; in handle_req() 114 if (req->data.nr != __NR_mount) { in handle_req() 115 fprintf(stderr, "huh? trapped something besides mount? %d\n", req->data.nr); in handle_req() 120 if (!(req->data.args[3] & MS_BIND)) in handle_req() 127 snprintf(path, sizeof(path), "/proc/%d/mem", req->pid); in handle_req() 145 if (ioctl(listener, SECCOMP_IOCTL_NOTIF_ID_VALID, &req->id) < 0) { in handle_req() 155 if (lseek(mem, req->data.args[0], SEEK_SET) < 0) { in handle_req() 166 if (lseek(mem, req->data.args[1], SEEK_SET) < 0) { in handle_req() 183 if (mount(source, target, NULL, req->data.args[3], NULL) < 0) { in handle_req() [all …]
|
/samples/connector/ |
D | cn_test.c | 42 struct cn_notify_req *req; 49 size0 = sizeof(*msg) + sizeof(*ctl) + 3 * sizeof(*req); 82 req = (struct cn_notify_req *)(ctl + 1); 87 req->first = cn_test_id.idx; 88 req->range = 10; 93 req++; 94 req->first = cn_test_id.val; 95 req->range = 10; 100 req++; 101 req->first = cn_test_id.val + 20; [all …]
|
/samples/qmi/ |
D | qmi_sample_client.c | 305 struct test_ping_req_msg_v01 req = {}; in ping_write() local 309 memcpy(req.ping, "ping", sizeof(req.ping)); in ping_write() 318 test_ping_req_msg_v01_ei, &req); in ping_write() 374 struct test_data_req_msg_v01 *req; in data_write() local 378 req = kzalloc(sizeof(*req), GFP_KERNEL); in data_write() 379 if (!req) in data_write() 384 kfree(req); in data_write() 388 req->data_len = min_t(size_t, sizeof(req->data), count); in data_write() 389 if (copy_from_user(req->data, user_buf, req->data_len)) { in data_write() 401 test_data_req_msg_v01_ei, req); in data_write() [all …]
|
/samples/bpf/ |
D | xdp_router_ipv4_user.c | 326 } req; in get_route_table() local 340 memset(&req, 0, sizeof(req)); in get_route_table() 341 req.nl.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in get_route_table() 342 req.nl.nlmsg_flags = NLM_F_REQUEST | NLM_F_DUMP; in get_route_table() 343 req.nl.nlmsg_type = RTM_GETROUTE; in get_route_table() 345 req.rt.rtm_family = rtm_family; in get_route_table() 346 req.rt.rtm_table = RT_TABLE_MAIN; in get_route_table() 347 req.nl.nlmsg_pid = 0; in get_route_table() 348 req.nl.nlmsg_seq = ++seq; in get_route_table() 350 iov.iov_base = (void *)&req.nl; in get_route_table() [all …]
|