Home
last modified time | relevance | path

Searched refs:mhdr (Results 1 – 2 of 2) sorted by relevance

/tools/perf/trace/beauty/include/linux/
Dsocket.h104 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg)) argument
119 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \ argument
121 ((mhdr)->msg_controllen - \
122 ((char *)(cmsg) - (char *)(mhdr)->msg_control)))
/tools/lib/bpf/
Dnetlink.c90 static int netlink_recvmsg(int sock, struct msghdr *mhdr, int flags) in netlink_recvmsg() argument
95 len = recvmsg(sock, mhdr, flags); in netlink_recvmsg()
121 struct msghdr mhdr = { in libbpf_netlink_recv() local
137 len = netlink_recvmsg(sock, &mhdr, MSG_PEEK | MSG_TRUNC); in libbpf_netlink_recv()
149 len = netlink_recvmsg(sock, &mhdr, 0); in libbpf_netlink_recv()