diff options
author | Thomas Graf <tgraf@redhat.com> | 2012-11-06 17:36:53 +0100 |
---|---|---|
committer | Thomas Graf <tgraf@redhat.com> | 2012-11-06 17:36:53 +0100 |
commit | b25f26b896de785b9aecf871222d1762de800dbc (patch) | |
tree | be658c4fbb71219ffc875f373687862d2b93185d /lib/socket.c | |
parent | 65f97deb6342310f212e88d7095d2b26cd53e89b (diff) | |
download | libnl-b25f26b896de785b9aecf871222d1762de800dbc.tar.gz |
socket: document nl_socket_get_fd()
Diffstat (limited to 'lib/socket.c')
-rw-r--r-- | lib/socket.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/socket.c b/lib/socket.c index 724fb7a..0335f07 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -472,6 +472,15 @@ void nl_socket_set_peer_groups(struct nl_sock *sk, uint32_t groups) * @{ */ +/** + * Return the file descriptor of the backing socket + * @arg sk Netlink socket + * + * Only valid after calling nl_connect() to create and bind the respective + * socket. + * + * @return File descriptor or -1 if not available. + */ int nl_socket_get_fd(const struct nl_sock *sk) { return sk->s_fd; |