Searched refs:nl (Results 1 - 18 of 18) sorted by relevance

/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-socket.c46 static int broadcast_groups_get(sd_netlink *nl) { argument
52 assert(nl);
53 assert(nl->fd >= 0);
55 r = getsockopt(nl->fd, SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS, NULL, &len);
58 nl->broadcast_group_dont_leave = true;
73 r = getsockopt(nl->fd, SOL_NETLINK, NETLINK_LIST_MEMBERSHIPS, groups, &len);
80 r = hashmap_ensure_allocated(&nl->broadcast_group_refs, NULL);
96 r = hashmap_put(nl->broadcast_group_refs, UINT_TO_PTR(group), UINT_TO_PTR(1));
105 int socket_bind(sd_netlink *nl) { argument
109 r = setsockopt(nl
131 broadcast_group_get_ref(sd_netlink *nl, unsigned group) argument
137 broadcast_group_set_ref(sd_netlink *nl, unsigned group, unsigned n_ref) argument
149 broadcast_group_join(sd_netlink *nl, unsigned group) argument
163 socket_broadcast_group_ref(sd_netlink *nl, unsigned group) argument
192 broadcast_group_leave(sd_netlink *nl, unsigned group) argument
209 socket_broadcast_group_unref(sd_netlink *nl, unsigned group) argument
237 socket_write_message(sd_netlink *nl, sd_netlink_message *m) argument
240 struct sockaddr_nl nl; member in union:__anon157
[all...]
H A Dnetlink-internal.h61 struct sockaddr_nl nl; member in union:sd_netlink::__anon156
126 int socket_bind(sd_netlink *nl);
127 int socket_broadcast_group_ref(sd_netlink *nl, unsigned group);
128 int socket_broadcast_group_unref(sd_netlink *nl, unsigned group);
129 int socket_write_message(sd_netlink *nl, sd_netlink_message *m);
130 int socket_read_message(sd_netlink *nl);
H A Dsd-netlink.c46 rtnl->sockaddr.nl.nl_family = AF_NETLINK;
85 if (rtnl->sockaddr.nl.nl_family != AF_NETLINK)
216 int sd_netlink_send(sd_netlink *nl, argument
221 assert_return(nl, -EINVAL);
222 assert_return(!rtnl_pid_changed(nl), -ECHILD);
226 rtnl_seal_message(nl, message);
228 r = socket_write_message(nl, message);
489 int sd_netlink_wait(sd_netlink *nl, uint64_t timeout_usec) { argument
490 assert_return(nl, -EINVAL);
491 assert_return(!rtnl_pid_changed(nl),
517 sd_netlink_call_async(sd_netlink *nl, sd_netlink_message *m, sd_netlink_message_handler_t callback, void *userdata, uint64_t usec, uint32_t *serial) argument
579 sd_netlink_call_async_cancel(sd_netlink *nl, uint32_t serial) argument
[all...]
/systemd/src/systemd/
H A Dsd-netlink.h40 typedef int (*sd_netlink_message_handler_t)(sd_netlink *nl, sd_netlink_message *m, void *userdata);
43 int sd_netlink_new_from_netlink(sd_netlink **nl, int fd);
44 int sd_netlink_open(sd_netlink **nl);
45 int sd_netlink_open_fd(sd_netlink **nl, int fd);
48 sd_netlink *sd_netlink_ref(sd_netlink *nl);
49 sd_netlink *sd_netlink_unref(sd_netlink *nl);
51 int sd_netlink_send(sd_netlink *nl, sd_netlink_message *message, uint32_t *serial);
52 int sd_netlink_call_async(sd_netlink *nl, sd_netlink_message *message,
55 int sd_netlink_call_async_cancel(sd_netlink *nl, uint32_t serial);
56 int sd_netlink_call(sd_netlink *nl, sd_netlink_messag
[all...]
/systemd/src/basic/
H A Dreplace-var.c76 size_t skip, d, nl; local
93 nl = l - skip + strlen(n);
94 a = realloc(r, nl + 1);
98 l = nl;
H A Dstrv.c838 char **nl; local
851 nl = realloc(*l, sizeof(char*) * (k + n + 1));
852 if (!nl)
855 *l = nl;
858 nl[i] = strdup(value);
859 if (!nl[i])
863 nl[i] = NULL;
868 free(nl[j]);
870 nl[k] = NULL;
H A Dsocket-util.h40 struct sockaddr_nl nl; member in union:sockaddr_union
H A Dstring-util.c568 size_t d, nl; local
576 nl = l - old_len + new_len;
577 a = realloc(r, nl + 1);
581 l = nl;
H A Dsocket-util.c216 a->sockaddr.nl.nl_family = AF_NETLINK;
217 a->sockaddr.nl.nl_groups = group;
311 r = asprintf(ret, "%s %u", sfamily, a->sockaddr.nl.nl_groups);
389 if (a->sockaddr.nl.nl_groups != b->sockaddr.nl.nl_groups)
H A Dlog.c815 static const char nl = '\n'; local
842 iovec[*n].iov_base = (char*) &nl;
/systemd/src/journal/
H A Djournald-audit.c434 const struct nlmsghdr *nl = buffer; local
446 sa->nl.nl_family != AF_NETLINK ||
447 sa->nl.nl_pid != 0) {
457 if (!NLMSG_OK(nl, buffer_size)) {
463 if (IN_SET(nl->nlmsg_type, NLMSG_NOOP, NLMSG_ERROR))
467 if (nl->nlmsg_type < AUDIT_FIRST_USER_MSG)
470 process_audit_string(s, nl->nlmsg_type, NLMSG_DATA(nl), nl->nlmsg_len - ALIGN(sizeof(struct nlmsghdr)));
490 .nl
[all...]
H A Djournal-send.c230 char *c, *nl; local
243 nl = memchr(iov[i].iov_base, '\n', iov[i].iov_len);
244 if (nl) {
245 if (_unlikely_(nl < c))
/systemd/src/network/
H A Dnetworkd.h85 int manager_rtnl_process_address(sd_netlink *nl, sd_netlink_message *message, void *userdata);
86 int manager_rtnl_process_route(sd_netlink *nl, sd_netlink_message *message, void *userdata);
/systemd/src/libudev/
H A Dlibudev-monitor.c166 udev_monitor->snl.nl.nl_pid = snl.nl.nl_pid;
219 udev_monitor->snl.nl.nl_family = AF_NETLINK;
220 udev_monitor->snl.nl.nl_groups = group;
223 udev_monitor->snl_destination.nl.nl_family = AF_NETLINK;
224 udev_monitor->snl_destination.nl.nl_groups = UDEV_MONITOR_UDEV;
389 udev_monitor->snl_trusted_sender.nl.nl_pid = sender->snl.nl.nl_pid;
624 if (snl.nl.nl_groups == 0) {
626 if (udev_monitor->snl_trusted_sender.nl
[all...]
/systemd/src/core/
H A Ddbus-execute.c1529 struct rlimit nl; local
1532 nl = *c->rlimit[ri];
1535 nl.rlim_cur = x;
1537 nl.rlim_max = x;
1540 nl = (struct rlimit) {
1545 r = rlimit_format(&nl, &f);
1550 *c->rlimit[ri] = nl;
1552 c->rlimit[ri] = newdup(struct rlimit, &nl, 1);
H A Dmain.c1108 struct rlimit nl; local
1131 nl.rlim_cur = nl.rlim_max = 64*1024;
1132 r = setrlimit_closest(RLIMIT_NOFILE, &nl);
H A Dservice.c1112 char **nl; local
1121 nl = realloc(rfd_names, (rn_fds + s->n_fd_store + 1) * sizeof(char*));
1122 if (!nl)
1125 rfd_names = nl;
/systemd/src/shared/
H A Dlogs-show.c82 size_t fl, nl; local
96 nl = length - fl;
97 buf = new(char, nl+1);
101 memcpy(buf, (const char*) data + fl, nl); local
102 buf[nl] = 0;
108 *target_size = nl;

Completed in 67 milliseconds