Searched refs:nl_sd (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.1/tools/accounting/ |
D | procacct.c | 270 int nl_sd = -1; in main() local 332 nl_sd = create_nl_socket(NETLINK_GENERIC); in main() 333 if (nl_sd < 0) in main() 337 id = get_family_id(nl_sd); in main() 345 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main() 356 rep_len = recv(nl_sd, &msg, sizeof(msg), 0); in main() 403 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main() 411 close(nl_sd); in main()
|
D | getdelays.c | 281 int nl_sd = -1; in main() local 395 nl_sd = create_nl_socket(NETLINK_GENERIC); in main() 396 if (nl_sd < 0) in main() 401 id = get_family_id(nl_sd); in main() 409 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main() 434 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main() 449 rc = send_cmd(nl_sd, id, mypid, CGROUPSTATS_CMD_GET, in main() 462 rep_len = recv(nl_sd, &msg, sizeof(msg), 0); in main() 551 rc = send_cmd(nl_sd, id, mypid, TASKSTATS_CMD_GET, in main() 559 close(nl_sd); in main()
|