Rizin
unix-like reverse engineering framework and cli tools
|
Go to the source code of this file.
Classes | |
struct | uv__fd_info_s |
struct | uv__fd_hash_entry_s |
struct | uv__fd_hash_entry_group_s |
struct | uv__fd_hash_bucket_s |
Macros | |
#define | UV__FD_HASH_SIZE 256 |
#define | UV__FD_HASH_GROUP_SIZE 16 |
#define | FIND_COMMON_VARIABLES |
#define | FIND_IN_GROUP_PTR(group_size) |
#define | FIND_IN_BUCKET_PTR() |
Functions | |
static INLINE void | uv__fd_hash_init (void) |
static INLINE int | uv__fd_hash_get (int fd, struct uv__fd_info_s *info) |
static INLINE void | uv__fd_hash_add (int fd, struct uv__fd_info_s *info) |
static INLINE int | uv__fd_hash_remove (int fd, struct uv__fd_info_s *info) |
Variables | |
static uv_mutex_t | uv__fd_hash_mutex |
static struct uv__fd_hash_entry_group_s | uv__fd_hash_entry_initial [UV__FD_HASH_SIZE *UV__FD_HASH_GROUP_SIZE] |
static struct uv__fd_hash_bucket_s | uv__fd_hash [UV__FD_HASH_SIZE] |
#define FIND_COMMON_VARIABLES |
Definition at line 92 of file fs-fd-hash-inl.h.
#define FIND_IN_BUCKET_PTR | ( | ) |
Definition at line 109 of file fs-fd-hash-inl.h.
#define FIND_IN_GROUP_PTR | ( | group_size | ) |
#define UV__FD_HASH_GROUP_SIZE 16 |
Definition at line 43 of file fs-fd-hash-inl.h.
#define UV__FD_HASH_SIZE 256 |
Definition at line 42 of file fs-fd-hash-inl.h.
|
static |
Definition at line 137 of file fs-fd-hash-inl.h.
References uv__fd_hash_entry_group_s::entries, fd, uv__fd_hash_entry_s::fd, FIND_COMMON_VARIABLES, FIND_IN_BUCKET_PTR, i, info(), uv__fd_hash_entry_group_s::next, NULL, UV__FD_HASH_GROUP_SIZE, uv__fd_hash_mutex, uv__malloc(), uv_fatal_error(), uv_mutex_lock(), and uv_mutex_unlock().
Referenced by fs__ftruncate(), fs__open(), fs__read_filemap(), and fs__write_filemap().
|
static |
Definition at line 122 of file fs-fd-hash-inl.h.
References FIND_COMMON_VARIABLES, FIND_IN_BUCKET_PTR, info(), NULL, uv__fd_hash_mutex, uv_mutex_lock(), and uv_mutex_unlock().
Referenced by fs__ftruncate(), fs__read(), and fs__write().
|
static |
Definition at line 76 of file fs-fd-hash-inl.h.
References ARRAY_SIZE, uv__fd_hash_bucket_s::data, err, i, uv__fd_hash_bucket_s::size, uv__fd_hash, uv__fd_hash_entry_initial, UV__FD_HASH_GROUP_SIZE, uv__fd_hash_mutex, uv_fatal_error(), and uv_mutex_init().
Referenced by uv_fs_init().
|
static |
Definition at line 167 of file fs-fd-hash-inl.h.
References FIND_COMMON_VARIABLES, FIND_IN_BUCKET_PTR, i, info(), uv__fd_hash_entry_group_s::next, NULL, UV__FD_HASH_GROUP_SIZE, uv__fd_hash_mutex, uv__free(), uv_mutex_lock(), and uv_mutex_unlock().
Referenced by fs__close().
|
static |
Definition at line 69 of file fs-fd-hash-inl.h.
Referenced by uv__fd_hash_init().
|
static |
Definition at line 69 of file fs-fd-hash-inl.h.
Referenced by uv__fd_hash_init().
|
static |
Definition at line 69 of file fs-fd-hash-inl.h.
Referenced by uv__fd_hash_add(), uv__fd_hash_get(), uv__fd_hash_init(), and uv__fd_hash_remove().