Searched refs:nlh (Results 1 – 2 of 2) sorted by relevance
94 #define NLMSG_DATA(nlh) ((void *)(((char *)nlh) + NLMSG_HDRLEN)) argument95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument96 (struct nlmsghdr *)(((char *)(nlh)) + \97 NLMSG_ALIGN((nlh)->nlmsg_len)))98 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument99 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \100 (nlh)->nlmsg_len <= (len))101 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
421 monitor_netlink_header nlh; in device_monitor_receive_device() member483 if (buf.nlh.magic != htobe32(UDEV_MONITOR_MAGIC)) in device_monitor_receive_device()486 buf.nlh.magic, htobe32(UDEV_MONITOR_MAGIC)); in device_monitor_receive_device()488 if (buf.nlh.properties_off+32 > (size_t) buflen) in device_monitor_receive_device()491 buf.nlh.properties_off+32, buflen); in device_monitor_receive_device()493 bufpos = buf.nlh.properties_off; in device_monitor_receive_device()551 monitor_netlink_header nlh = { in device_monitor_send_device() local554 .header_size = sizeof nlh, in device_monitor_send_device()557 { .iov_base = &nlh, .iov_len = sizeof nlh }, in device_monitor_send_device()588 nlh.filter_subsystem_hash = htobe32(string_hash32(val)); in device_monitor_send_device()[all …]