aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src/inet_int.hrl
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-11-25 11:16:54 +0100
committerLukas Larsson <[email protected]>2011-12-01 14:10:04 +0100
commit59e7e345ba51b7c2d6c9e479ce4cbb7c745c7893 (patch)
treec7a0583a81e70b6e70fca4ca2d06359719eab4e9 /lib/kernel/src/inet_int.hrl
parenteccba49e87ad32248a678d90cfdf355ffd97015d (diff)
downloadotp-59e7e345ba51b7c2d6c9e479ce4cbb7c745c7893.tar.gz
otp-59e7e345ba51b7c2d6c9e479ce4cbb7c745c7893.tar.bz2
otp-59e7e345ba51b7c2d6c9e479ce4cbb7c745c7893.zip
Implement ignorefd for TCP
Ignore fd is a feature used by sendfile to temporarily remove all driver_select calls on that fd so that another driver can select on it. It also delays all actions which sends or receives data in that fd until in the fd is no longer ignored. Only the controlling_process should use the feature as it is otherwise possible that the ignore will never be cleaned up and hence create a memory leak in the driver. An ignored driver will not detect that an fd has been closed until it is unignored.
Diffstat (limited to 'lib/kernel/src/inet_int.hrl')
-rw-r--r--lib/kernel/src/inet_int.hrl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/kernel/src/inet_int.hrl b/lib/kernel/src/inet_int.hrl
index f8984b13fe..cf893c73eb 100644
--- a/lib/kernel/src/inet_int.hrl
+++ b/lib/kernel/src/inet_int.hrl
@@ -85,6 +85,8 @@
-define(INET_REQ_GETIFADDRS, 25).
-define(INET_REQ_ACCEPT, 26).
-define(INET_REQ_LISTEN, 27).
+-define(INET_REQ_IGNOREFD, 28).
+
%% TCP requests
%%-define(TCP_REQ_ACCEPT, 40). MOVED
%%-define(TCP_REQ_LISTEN, 41). MERGED