diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/sock.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/net/sock.h b/include/net/sock.h index 0a80961a83c0..83f74b11d09a 100644 --- a/include/net/sock.h +++ b/include/net/sock.h | |||
@@ -1331,30 +1331,6 @@ extern int net_msg_warn; | |||
1331 | #define LIMIT_NETDEBUG(fmt, args...) \ | 1331 | #define LIMIT_NETDEBUG(fmt, args...) \ |
1332 | do { if (net_msg_warn && net_ratelimit()) printk(fmt,##args); } while(0) | 1332 | do { if (net_msg_warn && net_ratelimit()) printk(fmt,##args); } while(0) |
1333 | 1333 | ||
1334 | /* | ||
1335 | * Macros for sleeping on a socket. Use them like this: | ||
1336 | * | ||
1337 | * SOCK_SLEEP_PRE(sk) | ||
1338 | * if (condition) | ||
1339 | * schedule(); | ||
1340 | * SOCK_SLEEP_POST(sk) | ||
1341 | * | ||
1342 | * N.B. These are now obsolete and were, afaik, only ever used in DECnet | ||
1343 | * and when the last use of them in DECnet has gone, I'm intending to | ||
1344 | * remove them. | ||
1345 | */ | ||
1346 | |||
1347 | #define SOCK_SLEEP_PRE(sk) { struct task_struct *tsk = current; \ | ||
1348 | DECLARE_WAITQUEUE(wait, tsk); \ | ||
1349 | tsk->state = TASK_INTERRUPTIBLE; \ | ||
1350 | add_wait_queue((sk)->sk_sleep, &wait); \ | ||
1351 | release_sock(sk); | ||
1352 | |||
1353 | #define SOCK_SLEEP_POST(sk) tsk->state = TASK_RUNNING; \ | ||
1354 | remove_wait_queue((sk)->sk_sleep, &wait); \ | ||
1355 | lock_sock(sk); \ | ||
1356 | } | ||
1357 | |||
1358 | extern __u32 sysctl_wmem_max; | 1334 | extern __u32 sysctl_wmem_max; |
1359 | extern __u32 sysctl_rmem_max; | 1335 | extern __u32 sysctl_rmem_max; |
1360 | 1336 | ||