diff options
| author | Davide Libenzi <davidel@xmailserver.org> | 2002-10-29 22:35:31 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-10-29 22:35:31 -0800 |
| commit | f751cfc01cc86a24d6266c7116cdc16f27e6da40 (patch) | |
| tree | 7d4544d60e8af906122b80324a2ea8a05a4c5eae /include/net | |
| parent | ecf2c2143f0865f447020144b2ee6e4181f65814 (diff) | |
[PATCH] sys_epoll 0.15
Latest version of the epoll interfaces.
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/sock.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index d2790e2ca00a..4a4094b93d07 100644 --- a/include/net/sock.h +++ b/include/net/sock.h @@ -52,6 +52,9 @@ #include <asm/atomic.h> #include <net/dst.h> #include <net/scm.h> +#include <linux/fs.h> +#include <linux/file.h> +#include <linux/fcblist.h> /* * This structure really needs to be cleaned up. @@ -766,8 +769,13 @@ static inline unsigned long sock_wspace(struct sock *sk) static inline void sk_wake_async(struct sock *sk, int how, int band) { - if (sk->socket && sk->socket->fasync_list) - sock_wake_async(sk->socket, how, band); + if (sk->socket) { + if (sk->socket->file) + file_send_notify(sk->socket->file, ion_band_table[band - POLL_IN], + poll_band_table[band - POLL_IN]); + if (sk->socket->fasync_list) + sock_wake_async(sk->socket, how, band); + } } #define SOCK_MIN_SNDBUF 2048 |
