Searched refs:nl_sd (Results 1 - 2 of 2) sorted by last modified time

/linux-master/tools/accounting/
H A Dgetdelays.c287 int nl_sd = -1; local
401 nl_sd = create_nl_socket(NETLINK_GENERIC);
402 if (nl_sd < 0)
407 id = get_family_id(nl_sd);
415 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET,
440 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET,
455 rc = send_cmd(nl_sd, id, mypid, CGROUPSTATS_CMD_GET,
468 rep_len = recv(nl_sd, &msg, sizeof(msg), 0);
557 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET,
565 close(nl_sd);
[all...]
H A Dprocacct.c269 int nl_sd = -1; local
327 nl_sd = create_nl_socket(NETLINK_GENERIC);
328 if (nl_sd < 0)
332 id = get_family_id(nl_sd);
340 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET,
351 rep_len = recv(nl_sd, &msg, sizeof(msg), 0);
398 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET,
406 close(nl_sd);

Completed in 159 milliseconds