MCPcopy Create free account
hub / github.com/F-Stack/f-stack / tap_nl_final

Function tap_nl_final

dpdk/drivers/net/tap/tap_netlink.c:95–104  ·  view source on GitHub ↗

* Clean up a netlink socket once all communicating with the kernel is finished. * * @param[in] nlsk_fd * The netlink socket file descriptor used for communication. * * @return * 0 on success, -1 otherwise. */

Source from the content-addressed store, hash-verified

93 * 0 on success, -1 otherwise.
94 */
95int
96tap_nl_final(int nlsk_fd)
97{
98 if (close(nlsk_fd)) {
99 TAP_LOG(ERR, "Failed to close netlink socket: %s (%d)",
100 strerror(errno), errno);
101 return -1;
102 }
103 return 0;
104}
105
106/**
107 * Send a message to the kernel on the netlink socket.

Callers 3

qdisc_delFunction · 0.85
tap_dev_closeFunction · 0.85
tap_lsc_intr_handle_setFunction · 0.85

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected