Query: io_getcookie
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
io_getcookie(3) Library Functions Manual io_getcookie(3)NAMEio_getcookie - retrieve cookieSYNTAX#include <io.h> void* io_getcookie(int64 fd);DESCRIPTIONio_getcookie retrieves a cookie (pointer to some anonymous data structure you associated with this descriptor). Use io_setcookie(3) to associate a cookie with a descriptor. If you did not associate a cookie with this descriptor, io_getcookie returns NULL. The idea is that you put the state associated with a TCP connection you serve in a common struct. Then you do not need to have your own data structure to retrieve the state for a connection, you can just use the data structure io_wait already maintains. The lookup works in constant time and should not cause any cache misses.SEE ALSOio_wait(3), io_setcookie(3) io_getcookie(3)
Related Man Pages |
---|
xfreeeventdata(3) - debian |
io_wait(3) - debian |
iob_write(3) - debian |
xgeteventdata(3) - centos |
xgenericeventcookie(3) - suse |
Similar Topics in the Unix Linux Community |
---|
awk or sed - Convert 2 lines to 1 line |
How can I do this in VI editor? |
Introduction |
One instance of comparing grep and awk |
Weird 'find' results |