Linux Kernel Architecture
Chapter 12: Networks <net.h> int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec, size_t num, siz ...
Chapter 12: Networks result = sock_sendmsg(sock, msg, size); ... return result; } 12.11.2 The Netlink Mechanism Netlinkis a netw ...
Chapter 12: Networks ❑ libnlis a standalone library that has not been optimized for a particular use case. Instead, it provides ...
Chapter 12: Networks the protocol family. Netlink usesnetlink_createfor this purpose.^36 The function allocates an instance ofst ...
Chapter 12: Networks __u32 nlmsg_seq; /* Sequence number */ __u32 nlmsg_pid; /* Sending process port ID */ }; ❑ The length of th ...
Chapter 12: Networks netlink_insertis used to insert new entries into the hash table, whilenetlink_lookupallows for find- ingsoc ...
Chapter 12: Networks void (*input)(struct sk_buff *skb), struct mutex *cb_mutex, struct module *module); netdenotes the networki ...
Chapter 12: Networks Naturally, things get more involved when bidirectional communication is allowed. Take, for example, the aud ...
Chapter 12: Networks 12.12 Summary Linux is often used to operate network servers, and consequently, its networking implementati ...
...
SystemCalls In the view of user programs, the kernel is a transparent system layer — it is always present but never really notic ...
Chapter 13: System Calls.................................................... 13.1 Basics of System Programming Principally, syst ...
Chapter 13: System Calls handle = open("/tmp/test.txt", O_RDONLY); ptr = (void*)malloc(150); bytes = read(handle, ptr, 150); pri ...
Chapter 13: System Calls brk(0x8049800) = 0x8049800 brk(0x804a000) = 0x804a000 read(3, "A black cat crossing your path s"..., 15 ...
Chapter 13: System Calls 13.1.2 Supported Standards System calls are of special significance in allUnixlook-alikes. Their scope ...
Chapter 13: System Calls Similarly, some system calls were developed specifically for Linux and either don’t exist at all in oth ...
Chapter 13: System Calls the kernel once the signal handler has terminated. Because this behavior is transparent to the user app ...
Chapter 13: System Calls The situation is more interesting ifreadis interrupted by theSIGINTsignal and BSD behavior is activated ...
Chapter 13: System Calls ❑ nicesets the priority of normal processes by assigning a number between−20 and 19 in descending order ...
Chapter 13: System Calls ❑ setpriorityandgetpriorityset and get the priority of a process and are therefore key system calls for ...
«
38
39
40
41
42
43
44
45
46
47
»
Free download pdf