sys_socketcall  [net/socket.c]


De-multiplexer for socket related calls.

Arguments

eax 102
ebx Function to perform. It may be one of he following:
SYS_SOCKET Create an endpoint for communication.
SYS_BIND Bind a name to a socket.
SYS_CONNECT Initiate a connection on a socket.
SYS_LISTEN Listen for connections on a socket.
SYS_ACCEPT Accept a connection on a socket.
SYS_GETSOCKNAME Get socket name.
SYS_GETPEERNAME Get name of connected peer socket.
SYS_SOCKETPAIR Create a pair of connected sockets.
SYS_SEND Transmit data to another coonected socket.
SYS_SENDTO Transmit data to another socket.
SYS_RECV Receive data on a connected socket.
SYS_RECVFROM Receive messages from a socket.
SYS_SHUTDOWN Shut down part of a full-duplex connection.
SYS_SETSOCKOPT Set options on sockets.
SYS_GETSOCKOPT Get options on sockets.
SYS_SENDMSG Send messages to a socket.
SYS_RECVMSG Receive messages from a socket.
ecx Pointer to a data block containing the actual arguments (each argument is 32bit wide), which are passed through to the appropriate call.

Return values

The return values depend on the particular function used (see above). This system call will fail with -EINVAL if an invalid function was specified in ebx, or ecx points to an invalid location.

Remarks

n/a

Compatibility

n/a