netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fds.h File Reference
#include "linux_list.h"
Include dependency graph for fds.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  fds
 
struct  fds_item
 

Functions

struct fdscreate_fds (void)
 
void destroy_fds (struct fds *)
 
int register_fd (int fd, void(*cb)(void *data), void *data, struct fds *fds)
 
int unregister_fd (int fd, struct fds *fds)
 

Function Documentation

struct fds* create_fds ( void  )

References INIT_LIST_HEAD, fds::list, and NULL.

Referenced by init().

Here is the caller graph for this function:

void destroy_fds ( struct fds )

References fds_item::fd, fds_item::head, fds::list, list_for_each_entry_safe, and fds::readfds.

Referenced by killer().

Here is the caller graph for this function:

int register_fd ( int  fd,
void(*)(void *data cb,
void *  data,
struct fds fds 
)

References fds_item::cb, fds_item::data, data, fds_item::fd, fds_item::head, fds::list, fds::maxfd, NULL, and fds::readfds.

Referenced by cthelper_init(), ctnl_init(), and init().

Here is the caller graph for this function:

int unregister_fd ( int  fd,
struct fds fds 
)

References fds_item::fd, fds_item::head, fds::list, list_for_each_entry, list_for_each_entry_safe, fds::maxfd, and fds::readfds.

Referenced by tcp_accept(), and tcp_recv().

Here is the caller graph for this function: