Delete a class
- sk Netlink socket.
- class class to delete
Builds a netlink message by calling rtnl_class_build_delete_request(), sends the request to the kernel and waits for the ACK to be received and thus blocks until the request has been processed.
- 0 on success or a negative error code
Definition at line 198 of file class.c.
References nl_send_auto_complete(), and nlmsg_free().
struct nl_msg *msg;
if ((err = rtnl_class_build_delete_request(class, &msg)) < 0)
err = nl_send_auto_complete(sk, msg);
if (err < 0)