Home
last modified time | relevance | path

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

/system/extras/taskstats/
Dtaskstats.c44 int send_command(struct nl_sock* netlink_socket, uint16_t nlmsg_type, in send_command() argument
60 int result = nl_send(netlink_socket, message); in send_command()
85 int get_family_id(struct nl_sock* netlink_socket, const char* name) { in get_family_id() argument
86 if (send_command(netlink_socket, GENL_ID_CTRL, getpid(), in get_family_id()
99 if (nl_recvmsgs(netlink_socket, callbacks) < 0) { in get_family_id()
145 int query_task_stats(struct nl_sock* netlink_socket, int family_id, in query_task_stats() argument
149 int result = send_command(netlink_socket, family_id, getpid(), in query_task_stats()
160 result = nl_recvmsgs(netlink_socket, callbacks); in query_task_stats()
351 struct nl_sock* netlink_socket = nl_socket_alloc(); in main() local
352 if (!netlink_socket || genl_connect(netlink_socket) < 0) { in main()
[all …]