Home
last modified time | relevance | path

Searched refs:nl_sd (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/tools/accounting/
H A Dprocacct.c269 int nl_sd = -1; in main() local
327 nl_sd = create_nl_socket(NETLINK_GENERIC); in main()
328 if (nl_sd < 0) in main()
332 id = get_family_id(nl_sd); in main()
340 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
351 rep_len = recv(nl_sd, &msg, sizeof(msg), 0); in main()
398 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
406 close(nl_sd); in main()
H A Dgetdelays.c287 int nl_sd = -1; in main() local
401 nl_sd = create_nl_socket(NETLINK_GENERIC); in main()
402 if (nl_sd < 0) in main()
407 id = get_family_id(nl_sd); in main()
415 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
440 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
455 rc = send_cmd(nl_sd, id, mypid, CGROUPSTATS_CMD_GET, in main()
468 rep_len = recv(nl_sd, &msg, sizeof(msg), 0); in main()
557 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main()
565 close(nl_sd); in main()
/openbmc/inarp/
H A Dinarp.c63 int nl_sd; member
226 inarp->nl_sd = socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in init_netlink()
227 if (inarp->nl_sd < 0) { in init_netlink()
236 rc = bind(inarp->nl_sd, (struct sockaddr *)&addr, sizeof(addr)); in init_netlink()
251 rc = send(inarp->nl_sd, &msg, sizeof(msg), MSG_NOSIGNAL); in init_netlink()
260 close(inarp->nl_sd); in init_netlink()
357 len = recv(inarp->nl_sd, &buf, sizeof(buf), 0); in netlink_recv()
470 pollfds[1].fd = inarp.nl_sd; in main()
488 close(inarp.nl_sd); in main()