smbnetfs  0.6.3
About: SMBNetFS is a Linux/FreeBSD filesystem that allow you to use samba/microsoft network in the same manner as the network neighborhood in Microsoft Windows.
  Fossies Dox: smbnetfs-0.6.3.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

list.h File Reference
#include <stddef.h>
Include dependency graph for list.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  __LIST
 

Macros

#define list_entry(ptr, type, member)    (type*)((char*)(ptr) - offsetof(type, member))
 
#define STATIC_LIST_INITIALIZER(list)   { &(list), &(list) }
 

Typedefs

typedef struct __LIST LIST
 

Functions

static LISTfirst_list_elem (LIST *list)
 
static LISTlast_list_elem (LIST *list)
 
static void add_to_list (LIST *list, LIST *elem)
 
static void add_to_list_back (LIST *list, LIST *elem)
 
static void insert_to_list_after (LIST *list, LIST *elem, LIST *new_elem)
 
static void insert_to_list_before (LIST *list, LIST *elem, LIST *new_elem)
 
static void replace_in_list (LIST *list, LIST *elem, LIST *new_elem)
 
static void remove_from_list (LIST *list, LIST *elem)
 
static int is_list_empty (LIST *list)
 
static int is_valid_list_elem (LIST *list, LIST *elem)
 
static void init_list (LIST *list)
 

Macro Definition Documentation

◆ list_entry

#define list_entry (   ptr,
  type,
  member 
)     (type*)((char*)(ptr) - offsetof(type, member))

Definition at line 11 of file list.h.

◆ STATIC_LIST_INITIALIZER

#define STATIC_LIST_INITIALIZER (   list)    { &(list), &(list) }

Definition at line 14 of file list.h.

Typedef Documentation

◆ LIST

typedef struct __LIST LIST

Function Documentation

◆ add_to_list()

static void add_to_list ( LIST list,
LIST elem 
)
inlinestatic

◆ add_to_list_back()

static void add_to_list_back ( LIST list,
LIST elem 
)
inlinestatic

Definition at line 34 of file list.h.

References __LIST::next, and __LIST::prev.

Referenced by authinfo_store_list(), samba_add_new_context(), and stat_workaround_add_name_internal().

◆ first_list_elem()

◆ init_list()

static void init_list ( LIST list)
inlinestatic

Definition at line 92 of file list.h.

References __LIST::next, and __LIST::prev.

Referenced by smb_conn_ctx_init().

◆ insert_to_list_after()

static void insert_to_list_after ( LIST list,
LIST elem,
LIST new_elem 
)
inlinestatic

Definition at line 44 of file list.h.

References __LIST::next, and __LIST::prev.

◆ insert_to_list_before()

static void insert_to_list_before ( LIST list,
LIST elem,
LIST new_elem 
)
inlinestatic

Definition at line 56 of file list.h.

References __LIST::next, and __LIST::prev.

Referenced by stat_workaround_add_exception_internal_low().

◆ is_list_empty()

static int is_list_empty ( LIST list)
inlinestatic

Definition at line 84 of file list.h.

References __LIST::next.

Referenced by smb_conn_ctx_destroy().

◆ is_valid_list_elem()

◆ last_list_elem()

static LIST* last_list_elem ( LIST list)
inlinestatic

Definition at line 20 of file list.h.

References __LIST::prev.

Referenced by neg_cache_remove_outdate_tv(), and samba_find_oldest().

◆ remove_from_list()

◆ replace_in_list()

static void replace_in_list ( LIST list,
LIST elem,
LIST new_elem 
)
inlinestatic

Definition at line 68 of file list.h.

References __LIST::next, and __LIST::prev.