6.8.1.4Kernel subsystem networking

This section lists external interfaces, internal interfaces and data structures of the networking subsystem.

6.8.1.4.1External interfaces (system calls)

TSFI system calls

Non-TSFI system calls

System calls are listed in the Functional Specification mapping table.

6.8.1.4.2Internal interfaces

Sockets are implemented within the inode structure as specific types of inodes. inode.u, in the case of an inode for a socket, points to a structure of type socket. This structure contains a pointer to the proto_ops struct, in which the following methods of the socket are included:

release listen

bindshutdown

connect setsockopt

socketpair getsockopt

accept sendmsg

getname recvmsg

pollmmap

ioctl sendpage

The socket system call creates the inode. The system calls, such as bind, connect, poll, listen, setsockopt, getsockopt, ioctl, and accept, are directly implemented by the methods registered for the socket.

read and write, as well as send, sendmsg, sendto and recv, recvfrom, and recvmsg are implemented by the methods registered for sendmsg and recvmsg. Close is implemented by the methods registered for shutdown and release, and getsockname is implemented by the method registered for getname. Please note that send is an alias for sendmsg, and recv is an alias for recvfrom.

6.8.1.4.3Data Structures

socket include/linux/net.h proto_ops include/linux/net.h

6.8.1.5Kernel subsystem memory management

This section lists the external interfaces, internal interfaces and data structures of the memory management subsystem.

6.8.1.5.1External interfaces (system calls)

TSFI system calls

Non-TSFI system calls

227

Page 239
Image 239
IBM 10 SP1 EAL4 manual Kernel subsystem networking, Kernel subsystem memory management