Searched refs:msg (Results 1 – 10 of 10) sorted by relevance
/samples/connector/ |
D | cn_test.c | 25 static void cn_test_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) in cn_test_callback() argument 28 __func__, jiffies, msg->id.idx, msg->id.val, in cn_test_callback() 29 msg->seq, msg->ack, msg->len, in cn_test_callback() 30 msg->len ? (char *)msg->data : ""); in cn_test_callback() 43 struct cn_msg *msg = NULL; 49 size0 = sizeof(*msg) + sizeof(*ctl) + 3 * sizeof(*req); 65 msg = nlmsg_data(nlh); 67 memset(msg, 0, size0); 69 msg->id.idx = -1; 70 msg->id.val = -1; [all …]
|
D | ucon.c | 46 static int netlink_send(int s, struct cn_msg *msg) in netlink_send() argument 54 size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); in netlink_send() 66 __func__, msg->id.idx, msg->id.val, msg->len, msg->seq, msg->ack); in netlink_send() 68 memcpy(m, msg, sizeof(*m) + msg->len); in netlink_send()
|
/samples/bpf/ |
D | xdpsock_ctrl_proc.c | 62 struct msghdr msg; in send_xsks_map_fd() local 73 msg.msg_name = NULL; in send_xsks_map_fd() 74 msg.msg_namelen = 0; in send_xsks_map_fd() 75 msg.msg_iov = &iov; in send_xsks_map_fd() 76 msg.msg_iovlen = 1; in send_xsks_map_fd() 77 msg.msg_flags = 0; in send_xsks_map_fd() 78 msg.msg_control = cmsgbuf; in send_xsks_map_fd() 79 msg.msg_controllen = CMSG_LEN(sizeof(int)); in send_xsks_map_fd() 81 struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); in send_xsks_map_fd() 88 int ret = sendmsg(sock, &msg, 0); in send_xsks_map_fd()
|
D | test_cgrp2_sock.sh | 60 local msg="$2" 62 [ -n "$msg" ] && echo "ERROR: $msg"
|
D | xdp_router_ipv4_user.c | 317 struct msghdr msg; in get_route_table() local 349 memset(&msg, 0, sizeof(msg)); in get_route_table() 352 msg.msg_iov = &iov; in get_route_table() 353 msg.msg_iovlen = 1; in get_route_table() 354 ret = sendmsg(sock, &msg, 0); in get_route_table() 457 struct msghdr msg; in get_arp_table() local 487 memset(&msg, 0, sizeof(msg)); in get_arp_table() 490 msg.msg_iov = &iov; in get_arp_table() 491 msg.msg_iovlen = 1; in get_arp_table() 492 ret = sendmsg(sock, &msg, 0); in get_arp_table()
|
D | hbm.c | 68 static void do_error(char *msg, bool errno_flag); 112 static void do_error(char *msg, bool errno_flag) in do_error() argument 115 printf("ERROR: %s, errno: %d\n", msg, errno); in do_error() 117 printf("ERROR: %s\n", msg); in do_error()
|
D | xdpsock_user.c | 1515 struct msghdr msg; in recv_xsks_map_fd_from_ctrl_node() local 1523 msg.msg_name = 0; in recv_xsks_map_fd_from_ctrl_node() 1524 msg.msg_namelen = 0; in recv_xsks_map_fd_from_ctrl_node() 1525 msg.msg_iov = &iov; in recv_xsks_map_fd_from_ctrl_node() 1526 msg.msg_iovlen = 1; in recv_xsks_map_fd_from_ctrl_node() 1527 msg.msg_flags = 0; in recv_xsks_map_fd_from_ctrl_node() 1528 msg.msg_control = (caddr_t)cms; in recv_xsks_map_fd_from_ctrl_node() 1529 msg.msg_controllen = sizeof(cms); in recv_xsks_map_fd_from_ctrl_node() 1531 len = recvmsg(sock, &msg, 0); in recv_xsks_map_fd_from_ctrl_node() 1543 cmsg = CMSG_FIRSTHDR(&msg); in recv_xsks_map_fd_from_ctrl_node()
|
D | Makefile | 299 $(call msg,MKDIR,$@)
|
/samples/seccomp/ |
D | user-trap.c | 34 struct msghdr msg = {}; in send_fd() local 42 msg.msg_iov = &io; in send_fd() 43 msg.msg_iovlen = 1; in send_fd() 44 msg.msg_control = buf; in send_fd() 45 msg.msg_controllen = sizeof(buf); in send_fd() 46 cmsg = CMSG_FIRSTHDR(&msg); in send_fd() 51 msg.msg_controllen = cmsg->cmsg_len; in send_fd() 53 if (sendmsg(sock, &msg, 0) < 0) { in send_fd() 63 struct msghdr msg = {}; in recv_fd() local 71 msg.msg_iov = &io; in recv_fd() [all …]
|
/samples/crypto/ |
D | fips140_lab_util.c | 326 const char *msg; member 439 const uint8_t *msg = (const uint8_t *)t->msg; in af_alg_process_msg() local 452 if (t->msg == NULL) { in af_alg_process_msg() 455 msg = _msg; in af_alg_process_msg() 458 iov.iov_base = (void *)msg; in af_alg_process_msg() 495 printf("\tmessage was %s\n\n", bytes_to_hex(msg, t->msg_size)); in af_alg_process_msg() 500 printf("\tmessage was %s\n\n", bytes_to_hex(msg, t->msg_size)); in af_alg_process_msg()
|