1tcp_pageout(3z) z88dk Programmer's Manual tcp_pageout(3z)
2
3
4
6 tcp_pageout - page the ZSock data area out of the memory map
7
9 #include <net/misc.h>
10
11 void tcp_pageout(u8_t oldbinding);
12
14 The tcp_pageout() function pages out the ZSock data area into segment 1
15 (addresses 16384-32767) of the z88s memory map.
16
17 The parameter oldbinding is the return value from a prior
18 tcp_pagein(3z) function.
19
20 This function is primarily of use to daemons which use the ZSock
21 dataarea for small amounts of storage.
22
23
25 tcp_pagein() returns the previous binding of segment 1 which should be
26 used as a parameter to tcp_pageout(3z)
27
28
30 tcp_pagein(3z), tcp_malloc(3z), tcp_calloc(3z) tcp_free(3z)
31
32
34 Supplying an incorrect oldbinding will most likely crash the z88.
35
36
38 Dominic Morris <dom@jb.man.ac.uk>
39
40
41
42
43 18 February 2000 tcp_pageout(3z)