mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
lib{efi,avl,share,tpool,zfs_core,zfsbootenv,zutil}: -fvisibility=hidden
No symbols affected in libavl No symbols affected by libtpool, but pre-ANSI declarations got purged No symbols affected by libzfs_core No symbols affected by libzfs_bootenv libefi got cleaned, gained efi_debug documentation in efi_partition.h, and removes one undocumented and unused symbol from libzfs_core: D default_vtoc_map libnvpair saw removal of these symbols: D nv_alloc_nosleep_def D nv_alloc_sleep D nv_alloc_sleep_def D nv_fixed_ops_def D nvlist_hashtable_init_size D nvpair_max_recursion libshare saw removal of these symbols from libzfs: T libshare_nfs_init T libshare_smb_init T register_fstype B smb_shares libzutil saw removal of these internal symbols from libzfs_core: T label_paths T slice_cache_compare T zpool_find_import_blkid T zpool_open_func T zutil_alloc T zutil_strdup Reviewed-by: Matthew Ahrens <mahrens@delphix.com> Reviewed-by: John Kennedy <john.kennedy@delphix.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12191
This commit is contained in:
+19
-18
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _LIBNVPAIR_H
|
||||
#define _LIBNVPAIR_H
|
||||
#define _LIBNVPAIR_H extern __attribute__((visibility("default")))
|
||||
|
||||
#include <sys/nvpair.h>
|
||||
#include <stdlib.h>
|
||||
@@ -42,13 +42,13 @@ extern "C" {
|
||||
* are all imported from <sys/nvpair.h> included above.
|
||||
*/
|
||||
|
||||
extern int nvpair_value_match(nvpair_t *, int, char *, char **);
|
||||
extern int nvpair_value_match_regex(nvpair_t *, int, char *, regex_t *,
|
||||
_LIBNVPAIR_H int nvpair_value_match(nvpair_t *, int, char *, char **);
|
||||
_LIBNVPAIR_H int nvpair_value_match_regex(nvpair_t *, int, char *, regex_t *,
|
||||
char **);
|
||||
|
||||
extern void nvlist_print(FILE *, nvlist_t *);
|
||||
int nvlist_print_json(FILE *, nvlist_t *);
|
||||
extern void dump_nvlist(nvlist_t *, int);
|
||||
_LIBNVPAIR_H void nvlist_print(FILE *, nvlist_t *);
|
||||
_LIBNVPAIR_H int nvlist_print_json(FILE *, nvlist_t *);
|
||||
_LIBNVPAIR_H void dump_nvlist(nvlist_t *, int);
|
||||
|
||||
/*
|
||||
* Private nvlist printing interface that allows the caller some control
|
||||
@@ -88,18 +88,18 @@ enum nvlist_indent_mode {
|
||||
NVLIST_INDENT_TABBED /* Indent with tabstops */
|
||||
};
|
||||
|
||||
extern nvlist_prtctl_t nvlist_prtctl_alloc(void);
|
||||
extern void nvlist_prtctl_free(nvlist_prtctl_t);
|
||||
extern void nvlist_prt(nvlist_t *, nvlist_prtctl_t);
|
||||
_LIBNVPAIR_H nvlist_prtctl_t nvlist_prtctl_alloc(void);
|
||||
_LIBNVPAIR_H void nvlist_prtctl_free(nvlist_prtctl_t);
|
||||
_LIBNVPAIR_H void nvlist_prt(nvlist_t *, nvlist_prtctl_t);
|
||||
|
||||
/* Output stream */
|
||||
extern void nvlist_prtctl_setdest(nvlist_prtctl_t, FILE *);
|
||||
extern FILE *nvlist_prtctl_getdest(nvlist_prtctl_t);
|
||||
_LIBNVPAIR_H void nvlist_prtctl_setdest(nvlist_prtctl_t, FILE *);
|
||||
_LIBNVPAIR_H FILE *nvlist_prtctl_getdest(nvlist_prtctl_t);
|
||||
|
||||
/* Indentation mode, start indent, indent increment; default tabbed/0/1 */
|
||||
extern void nvlist_prtctl_setindent(nvlist_prtctl_t, enum nvlist_indent_mode,
|
||||
int, int);
|
||||
extern void nvlist_prtctl_doindent(nvlist_prtctl_t, int);
|
||||
_LIBNVPAIR_H void nvlist_prtctl_setindent(nvlist_prtctl_t,
|
||||
enum nvlist_indent_mode, int, int);
|
||||
_LIBNVPAIR_H void nvlist_prtctl_doindent(nvlist_prtctl_t, int);
|
||||
|
||||
enum nvlist_prtctl_fmt {
|
||||
NVLIST_FMT_MEMBER_NAME, /* name fmt; default "%s = " */
|
||||
@@ -107,9 +107,10 @@ enum nvlist_prtctl_fmt {
|
||||
NVLIST_FMT_BTWN_ARRAY /* between array members; default " " */
|
||||
};
|
||||
|
||||
extern void nvlist_prtctl_setfmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt,
|
||||
_LIBNVPAIR_H void nvlist_prtctl_setfmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt,
|
||||
const char *);
|
||||
extern void nvlist_prtctl_dofmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt, ...);
|
||||
_LIBNVPAIR_H void nvlist_prtctl_dofmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt,
|
||||
...);
|
||||
|
||||
/*
|
||||
* Function prototypes for interfaces that appoint a new rendering function
|
||||
@@ -139,7 +140,7 @@ extern void nvlist_prtctl_dofmt(nvlist_prtctl_t, enum nvlist_prtctl_fmt, ...);
|
||||
*/
|
||||
|
||||
#define NVLIST_PRINTCTL_SVDECL(funcname, valtype) \
|
||||
extern void funcname(nvlist_prtctl_t, \
|
||||
_LIBNVPAIR_H void funcname(nvlist_prtctl_t, \
|
||||
int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, valtype), \
|
||||
void *)
|
||||
|
||||
@@ -170,7 +171,7 @@ NVLIST_PRINTCTL_SVDECL(nvlist_prtctlop_nvlist, nvlist_t *);
|
||||
* Return values as above.
|
||||
*/
|
||||
#define NVLIST_PRINTCTL_AVDECL(funcname, vtype) \
|
||||
extern void funcname(nvlist_prtctl_t, \
|
||||
_LIBNVPAIR_H void funcname(nvlist_prtctl_t, \
|
||||
int (*)(nvlist_prtctl_t, void *, nvlist_t *, const char *, vtype, uint_t), \
|
||||
void *)
|
||||
|
||||
|
||||
+68
-62
@@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _LIBZFS_CORE_H
|
||||
#define _LIBZFS_CORE_H
|
||||
#define _LIBZFS_CORE_H extern __attribute__((visibility("default")))
|
||||
|
||||
#include <libnvpair.h>
|
||||
#include <sys/param.h>
|
||||
@@ -38,41 +38,42 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int libzfs_core_init(void);
|
||||
void libzfs_core_fini(void);
|
||||
_LIBZFS_CORE_H int libzfs_core_init(void);
|
||||
_LIBZFS_CORE_H void libzfs_core_fini(void);
|
||||
|
||||
/*
|
||||
* NB: this type should be kept binary compatible with dmu_objset_type_t.
|
||||
* NB: this type should be kept binary-compatible with dmu_objset_type_t.
|
||||
*/
|
||||
enum lzc_dataset_type {
|
||||
LZC_DATSET_TYPE_ZFS = 2,
|
||||
LZC_DATSET_TYPE_ZVOL
|
||||
};
|
||||
|
||||
int lzc_snapshot(nvlist_t *, nvlist_t *, nvlist_t **);
|
||||
int lzc_create(const char *, enum lzc_dataset_type, nvlist_t *, uint8_t *,
|
||||
_LIBZFS_CORE_H int lzc_snapshot(nvlist_t *, nvlist_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_create(const char *, enum lzc_dataset_type, nvlist_t *,
|
||||
uint8_t *, uint_t);
|
||||
_LIBZFS_CORE_H int lzc_clone(const char *, const char *, nvlist_t *);
|
||||
_LIBZFS_CORE_H int lzc_promote(const char *, char *, int);
|
||||
_LIBZFS_CORE_H int lzc_destroy_snaps(nvlist_t *, boolean_t, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_bookmark(nvlist_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_get_bookmarks(const char *, nvlist_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_get_bookmark_props(const char *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_destroy_bookmarks(nvlist_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_load_key(const char *, boolean_t, uint8_t *, uint_t);
|
||||
_LIBZFS_CORE_H int lzc_unload_key(const char *);
|
||||
_LIBZFS_CORE_H int lzc_change_key(const char *, uint64_t, nvlist_t *, uint8_t *,
|
||||
uint_t);
|
||||
int lzc_clone(const char *, const char *, nvlist_t *);
|
||||
int lzc_promote(const char *, char *, int);
|
||||
int lzc_destroy_snaps(nvlist_t *, boolean_t, nvlist_t **);
|
||||
int lzc_bookmark(nvlist_t *, nvlist_t **);
|
||||
int lzc_get_bookmarks(const char *, nvlist_t *, nvlist_t **);
|
||||
int lzc_get_bookmark_props(const char *, nvlist_t **);
|
||||
int lzc_destroy_bookmarks(nvlist_t *, nvlist_t **);
|
||||
int lzc_load_key(const char *, boolean_t, uint8_t *, uint_t);
|
||||
int lzc_unload_key(const char *);
|
||||
int lzc_change_key(const char *, uint64_t, nvlist_t *, uint8_t *, uint_t);
|
||||
int lzc_initialize(const char *, pool_initialize_func_t, nvlist_t *,
|
||||
nvlist_t **);
|
||||
int lzc_trim(const char *, pool_trim_func_t, uint64_t, boolean_t,
|
||||
_LIBZFS_CORE_H int lzc_initialize(const char *, pool_initialize_func_t,
|
||||
nvlist_t *, nvlist_t **);
|
||||
int lzc_redact(const char *, const char *, nvlist_t *);
|
||||
_LIBZFS_CORE_H int lzc_trim(const char *, pool_trim_func_t, uint64_t, boolean_t,
|
||||
nvlist_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_redact(const char *, const char *, nvlist_t *);
|
||||
|
||||
int lzc_snaprange_space(const char *, const char *, uint64_t *);
|
||||
_LIBZFS_CORE_H int lzc_snaprange_space(const char *, const char *, uint64_t *);
|
||||
|
||||
int lzc_hold(nvlist_t *, int, nvlist_t **);
|
||||
int lzc_release(nvlist_t *, nvlist_t **);
|
||||
int lzc_get_holds(const char *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_hold(nvlist_t *, int, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_release(nvlist_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_get_holds(const char *, nvlist_t **);
|
||||
|
||||
enum lzc_send_flags {
|
||||
LZC_SEND_FLAG_EMBED_DATA = 1 << 0,
|
||||
@@ -82,61 +83,66 @@ enum lzc_send_flags {
|
||||
LZC_SEND_FLAG_SAVED = 1 << 4,
|
||||
};
|
||||
|
||||
int lzc_send(const char *, const char *, int, enum lzc_send_flags);
|
||||
int lzc_send_resume(const char *, const char *, int,
|
||||
_LIBZFS_CORE_H int lzc_send(const char *, const char *, int,
|
||||
enum lzc_send_flags);
|
||||
_LIBZFS_CORE_H int lzc_send_resume(const char *, const char *, int,
|
||||
enum lzc_send_flags, uint64_t, uint64_t);
|
||||
int lzc_send_space(const char *, const char *, enum lzc_send_flags, uint64_t *);
|
||||
_LIBZFS_CORE_H int lzc_send_space(const char *, const char *,
|
||||
enum lzc_send_flags, uint64_t *);
|
||||
|
||||
struct dmu_replay_record;
|
||||
|
||||
int lzc_send_redacted(const char *, const char *, int, enum lzc_send_flags,
|
||||
const char *);
|
||||
int lzc_send_resume_redacted(const char *, const char *, int,
|
||||
_LIBZFS_CORE_H int lzc_send_redacted(const char *, const char *, int,
|
||||
enum lzc_send_flags, const char *);
|
||||
_LIBZFS_CORE_H int lzc_send_resume_redacted(const char *, const char *, int,
|
||||
enum lzc_send_flags, uint64_t, uint64_t, const char *);
|
||||
int lzc_receive(const char *, nvlist_t *, const char *, boolean_t, boolean_t,
|
||||
int);
|
||||
int lzc_receive_resumable(const char *, nvlist_t *, const char *, boolean_t,
|
||||
boolean_t, int);
|
||||
int lzc_receive_with_header(const char *, nvlist_t *, const char *, boolean_t,
|
||||
boolean_t, boolean_t, int, const struct dmu_replay_record *);
|
||||
int lzc_receive_one(const char *, nvlist_t *, const char *, boolean_t,
|
||||
boolean_t, boolean_t, int, const struct dmu_replay_record *, int,
|
||||
_LIBZFS_CORE_H int lzc_receive(const char *, nvlist_t *, const char *,
|
||||
boolean_t, boolean_t, int);
|
||||
_LIBZFS_CORE_H int lzc_receive_resumable(const char *, nvlist_t *, const char *,
|
||||
boolean_t, boolean_t, int);
|
||||
_LIBZFS_CORE_H int lzc_receive_with_header(const char *, nvlist_t *,
|
||||
const char *, boolean_t, boolean_t, boolean_t, int,
|
||||
const struct dmu_replay_record *);
|
||||
_LIBZFS_CORE_H int lzc_receive_one(const char *, nvlist_t *, const char *,
|
||||
boolean_t, boolean_t, boolean_t, int, const struct dmu_replay_record *, int,
|
||||
uint64_t *, uint64_t *, uint64_t *, nvlist_t **);
|
||||
int lzc_receive_with_cmdprops(const char *, nvlist_t *, nvlist_t *,
|
||||
uint8_t *, uint_t, const char *, boolean_t, boolean_t, boolean_t, int,
|
||||
const struct dmu_replay_record *, int, uint64_t *, uint64_t *,
|
||||
uint64_t *, nvlist_t **);
|
||||
int lzc_send_space(const char *, const char *, enum lzc_send_flags, uint64_t *);
|
||||
int lzc_send_space_resume_redacted(const char *, const char *,
|
||||
_LIBZFS_CORE_H int lzc_receive_with_cmdprops(const char *, nvlist_t *,
|
||||
nvlist_t *, uint8_t *, uint_t, const char *, boolean_t, boolean_t,
|
||||
boolean_t, int, const struct dmu_replay_record *, int, uint64_t *,
|
||||
uint64_t *, uint64_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_send_space(const char *, const char *,
|
||||
enum lzc_send_flags, uint64_t *);
|
||||
_LIBZFS_CORE_H int lzc_send_space_resume_redacted(const char *, const char *,
|
||||
enum lzc_send_flags, uint64_t, uint64_t, uint64_t, const char *,
|
||||
int, uint64_t *);
|
||||
uint64_t lzc_send_progress(int);
|
||||
_LIBZFS_CORE_H uint64_t lzc_send_progress(int);
|
||||
|
||||
boolean_t lzc_exists(const char *);
|
||||
_LIBZFS_CORE_H boolean_t lzc_exists(const char *);
|
||||
|
||||
int lzc_rollback(const char *, char *, int);
|
||||
int lzc_rollback_to(const char *, const char *);
|
||||
_LIBZFS_CORE_H int lzc_rollback(const char *, char *, int);
|
||||
_LIBZFS_CORE_H int lzc_rollback_to(const char *, const char *);
|
||||
|
||||
int lzc_rename(const char *, const char *);
|
||||
int lzc_destroy(const char *);
|
||||
_LIBZFS_CORE_H int lzc_rename(const char *, const char *);
|
||||
_LIBZFS_CORE_H int lzc_destroy(const char *);
|
||||
|
||||
int lzc_channel_program(const char *, const char *, uint64_t,
|
||||
uint64_t, nvlist_t *, nvlist_t **);
|
||||
int lzc_channel_program_nosync(const char *, const char *, uint64_t,
|
||||
_LIBZFS_CORE_H int lzc_channel_program(const char *, const char *, uint64_t,
|
||||
uint64_t, nvlist_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_channel_program_nosync(const char *, const char *,
|
||||
uint64_t, uint64_t, nvlist_t *, nvlist_t **);
|
||||
|
||||
int lzc_sync(const char *, nvlist_t *, nvlist_t **);
|
||||
int lzc_reopen(const char *, boolean_t);
|
||||
_LIBZFS_CORE_H int lzc_sync(const char *, nvlist_t *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_reopen(const char *, boolean_t);
|
||||
|
||||
int lzc_pool_checkpoint(const char *);
|
||||
int lzc_pool_checkpoint_discard(const char *);
|
||||
_LIBZFS_CORE_H int lzc_pool_checkpoint(const char *);
|
||||
_LIBZFS_CORE_H int lzc_pool_checkpoint_discard(const char *);
|
||||
|
||||
int lzc_wait(const char *, zpool_wait_activity_t, boolean_t *);
|
||||
int lzc_wait_tag(const char *, zpool_wait_activity_t, uint64_t, boolean_t *);
|
||||
int lzc_wait_fs(const char *, zfs_wait_activity_t, boolean_t *);
|
||||
_LIBZFS_CORE_H int lzc_wait(const char *, zpool_wait_activity_t, boolean_t *);
|
||||
_LIBZFS_CORE_H int lzc_wait_tag(const char *, zpool_wait_activity_t, uint64_t,
|
||||
boolean_t *);
|
||||
_LIBZFS_CORE_H int lzc_wait_fs(const char *, zfs_wait_activity_t, boolean_t *);
|
||||
|
||||
int lzc_set_bootenv(const char *, const nvlist_t *);
|
||||
int lzc_get_bootenv(const char *, nvlist_t **);
|
||||
_LIBZFS_CORE_H int lzc_set_bootenv(const char *, const nvlist_t *);
|
||||
_LIBZFS_CORE_H int lzc_get_bootenv(const char *, nvlist_t **);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
+11
-9
@@ -14,7 +14,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _LIBZFSBOOTENV_H
|
||||
#define _LIBZFSBOOTENV_H
|
||||
#define _LIBZFSBOOTENV_H extern __attribute__((visibility("default")))
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -25,14 +25,16 @@ typedef enum lzbe_flags {
|
||||
lzbe_replace /* replace current nvlist */
|
||||
} lzbe_flags_t;
|
||||
|
||||
extern int lzbe_nvlist_get(const char *, const char *, void **);
|
||||
extern int lzbe_nvlist_set(const char *, const char *, void *);
|
||||
extern void lzbe_nvlist_free(void *);
|
||||
extern int lzbe_add_pair(void *, const char *, const char *, void *, size_t);
|
||||
extern int lzbe_remove_pair(void *, const char *);
|
||||
extern int lzbe_set_boot_device(const char *, lzbe_flags_t, const char *);
|
||||
extern int lzbe_get_boot_device(const char *, char **);
|
||||
extern int lzbe_bootenv_print(const char *, const char *, FILE *);
|
||||
_LIBZFSBOOTENV_H int lzbe_nvlist_get(const char *, const char *, void **);
|
||||
_LIBZFSBOOTENV_H int lzbe_nvlist_set(const char *, const char *, void *);
|
||||
_LIBZFSBOOTENV_H void lzbe_nvlist_free(void *);
|
||||
_LIBZFSBOOTENV_H int lzbe_add_pair(void *, const char *, const char *, void *,
|
||||
size_t);
|
||||
_LIBZFSBOOTENV_H int lzbe_remove_pair(void *, const char *);
|
||||
_LIBZFSBOOTENV_H int lzbe_set_boot_device(const char *, lzbe_flags_t,
|
||||
const char *);
|
||||
_LIBZFSBOOTENV_H int lzbe_get_boot_device(const char *, char **);
|
||||
_LIBZFSBOOTENV_H int lzbe_bootenv_print(const char *, const char *, FILE *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+18
-18
@@ -28,7 +28,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _AVL_H
|
||||
#define _AVL_H
|
||||
#define _AVL_H extern __attribute__((visibility("default")))
|
||||
|
||||
/*
|
||||
* This is a private header file. Applications should not directly include
|
||||
@@ -160,7 +160,7 @@ typedef uintptr_t avl_index_t;
|
||||
* size - the value of sizeof(struct my_type)
|
||||
* offset - the value of OFFSETOF(struct my_type, my_link)
|
||||
*/
|
||||
extern void avl_create(avl_tree_t *tree,
|
||||
_AVL_H void avl_create(avl_tree_t *tree,
|
||||
int (*compar) (const void *, const void *), size_t size, size_t offset);
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ extern void avl_create(avl_tree_t *tree,
|
||||
* node - node that has the value being looked for
|
||||
* where - position for use with avl_nearest() or avl_insert(), may be NULL
|
||||
*/
|
||||
extern void *avl_find(avl_tree_t *tree, const void *node, avl_index_t *where);
|
||||
_AVL_H void *avl_find(avl_tree_t *tree, const void *node, avl_index_t *where);
|
||||
|
||||
/*
|
||||
* Insert a node into the tree.
|
||||
@@ -180,7 +180,7 @@ extern void *avl_find(avl_tree_t *tree, const void *node, avl_index_t *where);
|
||||
* node - the node to insert
|
||||
* where - position as returned from avl_find()
|
||||
*/
|
||||
extern void avl_insert(avl_tree_t *tree, void *node, avl_index_t where);
|
||||
_AVL_H void avl_insert(avl_tree_t *tree, void *node, avl_index_t where);
|
||||
|
||||
/*
|
||||
* Insert "new_data" in "tree" in the given "direction" either after
|
||||
@@ -193,7 +193,7 @@ extern void avl_insert(avl_tree_t *tree, void *node, avl_index_t where);
|
||||
* here - existing node in "tree"
|
||||
* direction - either AVL_AFTER or AVL_BEFORE the data "here".
|
||||
*/
|
||||
extern void avl_insert_here(avl_tree_t *tree, void *new_data, void *here,
|
||||
_AVL_H void avl_insert_here(avl_tree_t *tree, void *new_data, void *here,
|
||||
int direction);
|
||||
|
||||
|
||||
@@ -202,8 +202,8 @@ extern void avl_insert_here(avl_tree_t *tree, void *new_data, void *here,
|
||||
* if the tree is empty.
|
||||
*
|
||||
*/
|
||||
extern void *avl_first(avl_tree_t *tree);
|
||||
extern void *avl_last(avl_tree_t *tree);
|
||||
_AVL_H void *avl_first(avl_tree_t *tree);
|
||||
_AVL_H void *avl_last(avl_tree_t *tree);
|
||||
|
||||
|
||||
/*
|
||||
@@ -239,7 +239,7 @@ extern void *avl_last(avl_tree_t *tree);
|
||||
* else
|
||||
* less = avl_nearest(tree, where, AVL_BEFORE);
|
||||
*/
|
||||
extern void *avl_nearest(avl_tree_t *tree, avl_index_t where, int direction);
|
||||
_AVL_H void *avl_nearest(avl_tree_t *tree, avl_index_t where, int direction);
|
||||
|
||||
|
||||
/*
|
||||
@@ -249,7 +249,7 @@ extern void *avl_nearest(avl_tree_t *tree, avl_index_t where, int direction);
|
||||
*
|
||||
* node - the node to add
|
||||
*/
|
||||
extern void avl_add(avl_tree_t *tree, void *node);
|
||||
_AVL_H void avl_add(avl_tree_t *tree, void *node);
|
||||
|
||||
|
||||
/*
|
||||
@@ -257,7 +257,7 @@ extern void avl_add(avl_tree_t *tree, void *node);
|
||||
*
|
||||
* node - the node to remove
|
||||
*/
|
||||
extern void avl_remove(avl_tree_t *tree, void *node);
|
||||
_AVL_H void avl_remove(avl_tree_t *tree, void *node);
|
||||
|
||||
/*
|
||||
* Reinsert a node only if its order has changed relative to its nearest
|
||||
@@ -266,24 +266,24 @@ extern void avl_remove(avl_tree_t *tree, void *node);
|
||||
* avl_update_gt() only if you know the direction in which the order of the
|
||||
* node may change.
|
||||
*/
|
||||
extern boolean_t avl_update(avl_tree_t *, void *);
|
||||
extern boolean_t avl_update_lt(avl_tree_t *, void *);
|
||||
extern boolean_t avl_update_gt(avl_tree_t *, void *);
|
||||
_AVL_H boolean_t avl_update(avl_tree_t *, void *);
|
||||
_AVL_H boolean_t avl_update_lt(avl_tree_t *, void *);
|
||||
_AVL_H boolean_t avl_update_gt(avl_tree_t *, void *);
|
||||
|
||||
/*
|
||||
* Swaps the contents of the two trees.
|
||||
*/
|
||||
extern void avl_swap(avl_tree_t *tree1, avl_tree_t *tree2);
|
||||
_AVL_H void avl_swap(avl_tree_t *tree1, avl_tree_t *tree2);
|
||||
|
||||
/*
|
||||
* Return the number of nodes in the tree
|
||||
*/
|
||||
extern ulong_t avl_numnodes(avl_tree_t *tree);
|
||||
_AVL_H ulong_t avl_numnodes(avl_tree_t *tree);
|
||||
|
||||
/*
|
||||
* Return B_TRUE if there are zero nodes in the tree, B_FALSE otherwise.
|
||||
*/
|
||||
extern boolean_t avl_is_empty(avl_tree_t *tree);
|
||||
_AVL_H boolean_t avl_is_empty(avl_tree_t *tree);
|
||||
|
||||
/*
|
||||
* Used to destroy any remaining nodes in a tree. The cookie argument should
|
||||
@@ -306,7 +306,7 @@ extern boolean_t avl_is_empty(avl_tree_t *tree);
|
||||
* free(node);
|
||||
* avl_destroy(tree);
|
||||
*/
|
||||
extern void *avl_destroy_nodes(avl_tree_t *tree, void **cookie);
|
||||
_AVL_H void *avl_destroy_nodes(avl_tree_t *tree, void **cookie);
|
||||
|
||||
|
||||
/*
|
||||
@@ -314,7 +314,7 @@ extern void *avl_destroy_nodes(avl_tree_t *tree, void **cookie);
|
||||
*
|
||||
* tree - the empty tree to destroy
|
||||
*/
|
||||
extern void avl_destroy(avl_tree_t *tree);
|
||||
_AVL_H void avl_destroy(avl_tree_t *tree);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _AVL_IMPL_H
|
||||
#define _AVL_IMPL_H
|
||||
|
||||
#define _AVL_IMPL_H extern __attribute__((visibility("default")))
|
||||
|
||||
|
||||
/*
|
||||
@@ -155,7 +154,7 @@ struct avl_tree {
|
||||
/*
|
||||
* This will only by used via AVL_NEXT() or AVL_PREV()
|
||||
*/
|
||||
extern void *avl_walk(struct avl_tree *, void *, int);
|
||||
_AVL_IMPL_H void *avl_walk(struct avl_tree *, void *, int);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _SYS_EFI_PARTITION_H
|
||||
#define _SYS_EFI_PARTITION_H
|
||||
#define _SYS_EFI_PARTITION_H extern __attribute__((visibility("default")))
|
||||
|
||||
#include <sys/uuid.h>
|
||||
|
||||
@@ -363,14 +363,15 @@ struct partition64 {
|
||||
#endif
|
||||
|
||||
#ifndef _KERNEL
|
||||
extern int efi_alloc_and_init(int, uint32_t, struct dk_gpt **);
|
||||
extern int efi_alloc_and_read(int, struct dk_gpt **);
|
||||
extern int efi_write(int, struct dk_gpt *);
|
||||
extern int efi_rescan(int);
|
||||
extern void efi_free(struct dk_gpt *);
|
||||
extern int efi_type(int);
|
||||
extern void efi_err_check(struct dk_gpt *);
|
||||
extern int efi_use_whole_disk(int fd);
|
||||
_SYS_EFI_PARTITION_H int efi_debug;
|
||||
_SYS_EFI_PARTITION_H int efi_alloc_and_init(int, uint32_t, struct dk_gpt **);
|
||||
_SYS_EFI_PARTITION_H int efi_alloc_and_read(int, struct dk_gpt **);
|
||||
_SYS_EFI_PARTITION_H int efi_write(int, struct dk_gpt *);
|
||||
_SYS_EFI_PARTITION_H int efi_rescan(int);
|
||||
_SYS_EFI_PARTITION_H void efi_free(struct dk_gpt *);
|
||||
_SYS_EFI_PARTITION_H int efi_type(int);
|
||||
_SYS_EFI_PARTITION_H void efi_err_check(struct dk_gpt *);
|
||||
_SYS_EFI_PARTITION_H int efi_use_whole_disk(int fd);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
+238
-189
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _SYS_NVPAIR_H
|
||||
#define _SYS_NVPAIR_H
|
||||
#define _SYS_NVPAIR_H extern __attribute__((visibility("default")))
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
@@ -135,221 +135,270 @@ struct nv_alloc_ops {
|
||||
void (*nv_ao_reset)(nv_alloc_t *);
|
||||
};
|
||||
|
||||
extern const nv_alloc_ops_t *nv_fixed_ops;
|
||||
extern nv_alloc_t *nv_alloc_nosleep;
|
||||
_SYS_NVPAIR_H const nv_alloc_ops_t *nv_fixed_ops;
|
||||
_SYS_NVPAIR_H nv_alloc_t *nv_alloc_nosleep;
|
||||
|
||||
#if defined(_KERNEL)
|
||||
extern nv_alloc_t *nv_alloc_sleep;
|
||||
extern nv_alloc_t *nv_alloc_pushpage;
|
||||
_SYS_NVPAIR_H nv_alloc_t *nv_alloc_sleep;
|
||||
_SYS_NVPAIR_H nv_alloc_t *nv_alloc_pushpage;
|
||||
#endif
|
||||
|
||||
int nv_alloc_init(nv_alloc_t *, const nv_alloc_ops_t *, /* args */ ...);
|
||||
void nv_alloc_reset(nv_alloc_t *);
|
||||
void nv_alloc_fini(nv_alloc_t *);
|
||||
_SYS_NVPAIR_H int nv_alloc_init(nv_alloc_t *, const nv_alloc_ops_t *,
|
||||
/* args */ ...);
|
||||
_SYS_NVPAIR_H void nv_alloc_reset(nv_alloc_t *);
|
||||
_SYS_NVPAIR_H void nv_alloc_fini(nv_alloc_t *);
|
||||
|
||||
/* list management */
|
||||
int nvlist_alloc(nvlist_t **, uint_t, int);
|
||||
void nvlist_free(nvlist_t *);
|
||||
int nvlist_size(nvlist_t *, size_t *, int);
|
||||
int nvlist_pack(nvlist_t *, char **, size_t *, int, int);
|
||||
int nvlist_unpack(char *, size_t, nvlist_t **, int);
|
||||
int nvlist_dup(nvlist_t *, nvlist_t **, int);
|
||||
int nvlist_merge(nvlist_t *, nvlist_t *, int);
|
||||
_SYS_NVPAIR_H int nvlist_alloc(nvlist_t **, uint_t, int);
|
||||
_SYS_NVPAIR_H void nvlist_free(nvlist_t *);
|
||||
_SYS_NVPAIR_H int nvlist_size(nvlist_t *, size_t *, int);
|
||||
_SYS_NVPAIR_H int nvlist_pack(nvlist_t *, char **, size_t *, int, int);
|
||||
_SYS_NVPAIR_H int nvlist_unpack(char *, size_t, nvlist_t **, int);
|
||||
_SYS_NVPAIR_H int nvlist_dup(nvlist_t *, nvlist_t **, int);
|
||||
_SYS_NVPAIR_H int nvlist_merge(nvlist_t *, nvlist_t *, int);
|
||||
|
||||
uint_t nvlist_nvflag(nvlist_t *);
|
||||
_SYS_NVPAIR_H uint_t nvlist_nvflag(nvlist_t *);
|
||||
|
||||
int nvlist_xalloc(nvlist_t **, uint_t, nv_alloc_t *);
|
||||
int nvlist_xpack(nvlist_t *, char **, size_t *, int, nv_alloc_t *);
|
||||
int nvlist_xunpack(char *, size_t, nvlist_t **, nv_alloc_t *);
|
||||
int nvlist_xdup(nvlist_t *, nvlist_t **, nv_alloc_t *);
|
||||
nv_alloc_t *nvlist_lookup_nv_alloc(nvlist_t *);
|
||||
_SYS_NVPAIR_H int nvlist_xalloc(nvlist_t **, uint_t, nv_alloc_t *);
|
||||
_SYS_NVPAIR_H int nvlist_xpack(nvlist_t *, char **, size_t *, int,
|
||||
nv_alloc_t *);
|
||||
_SYS_NVPAIR_H int nvlist_xunpack(char *, size_t, nvlist_t **, nv_alloc_t *);
|
||||
_SYS_NVPAIR_H int nvlist_xdup(nvlist_t *, nvlist_t **, nv_alloc_t *);
|
||||
_SYS_NVPAIR_H nv_alloc_t *nvlist_lookup_nv_alloc(nvlist_t *);
|
||||
|
||||
int nvlist_add_nvpair(nvlist_t *, nvpair_t *);
|
||||
int nvlist_add_boolean(nvlist_t *, const char *);
|
||||
int nvlist_add_boolean_value(nvlist_t *, const char *, boolean_t);
|
||||
int nvlist_add_byte(nvlist_t *, const char *, uchar_t);
|
||||
int nvlist_add_int8(nvlist_t *, const char *, int8_t);
|
||||
int nvlist_add_uint8(nvlist_t *, const char *, uint8_t);
|
||||
int nvlist_add_int16(nvlist_t *, const char *, int16_t);
|
||||
int nvlist_add_uint16(nvlist_t *, const char *, uint16_t);
|
||||
int nvlist_add_int32(nvlist_t *, const char *, int32_t);
|
||||
int nvlist_add_uint32(nvlist_t *, const char *, uint32_t);
|
||||
int nvlist_add_int64(nvlist_t *, const char *, int64_t);
|
||||
int nvlist_add_uint64(nvlist_t *, const char *, uint64_t);
|
||||
int nvlist_add_string(nvlist_t *, const char *, const char *);
|
||||
int nvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *);
|
||||
int nvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
|
||||
int nvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
|
||||
int nvlist_add_int8_array(nvlist_t *, const char *, int8_t *, uint_t);
|
||||
int nvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
|
||||
int nvlist_add_int16_array(nvlist_t *, const char *, int16_t *, uint_t);
|
||||
int nvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
|
||||
int nvlist_add_int32_array(nvlist_t *, const char *, int32_t *, uint_t);
|
||||
int nvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
|
||||
int nvlist_add_int64_array(nvlist_t *, const char *, int64_t *, uint_t);
|
||||
int nvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
|
||||
int nvlist_add_string_array(nvlist_t *, const char *, char *const *, uint_t);
|
||||
int nvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t);
|
||||
int nvlist_add_hrtime(nvlist_t *, const char *, hrtime_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_nvpair(nvlist_t *, nvpair_t *);
|
||||
_SYS_NVPAIR_H int nvlist_add_boolean(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H int nvlist_add_boolean_value(nvlist_t *, const char *, boolean_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_byte(nvlist_t *, const char *, uchar_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_int8(nvlist_t *, const char *, int8_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_uint8(nvlist_t *, const char *, uint8_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_int16(nvlist_t *, const char *, int16_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_uint16(nvlist_t *, const char *, uint16_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_int32(nvlist_t *, const char *, int32_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_uint32(nvlist_t *, const char *, uint32_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_int64(nvlist_t *, const char *, int64_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_uint64(nvlist_t *, const char *, uint64_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_string(nvlist_t *, const char *, const char *);
|
||||
_SYS_NVPAIR_H int nvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *);
|
||||
_SYS_NVPAIR_H int nvlist_add_boolean_array(nvlist_t *, const char *,
|
||||
boolean_t *, uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_byte_array(nvlist_t *, const char *, uchar_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_int8_array(nvlist_t *, const char *, int8_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_int16_array(nvlist_t *, const char *, int16_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_int32_array(nvlist_t *, const char *, int32_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_int64_array(nvlist_t *, const char *, int64_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_string_array(nvlist_t *, const char *,
|
||||
char * const *, uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_nvlist_array(nvlist_t *, const char *,
|
||||
nvlist_t **, uint_t);
|
||||
_SYS_NVPAIR_H int nvlist_add_hrtime(nvlist_t *, const char *, hrtime_t);
|
||||
#if !defined(_KERNEL) && !defined(_STANDALONE)
|
||||
int nvlist_add_double(nvlist_t *, const char *, double);
|
||||
_SYS_NVPAIR_H int nvlist_add_double(nvlist_t *, const char *, double);
|
||||
#endif
|
||||
|
||||
int nvlist_remove(nvlist_t *, const char *, data_type_t);
|
||||
int nvlist_remove_all(nvlist_t *, const char *);
|
||||
int nvlist_remove_nvpair(nvlist_t *, nvpair_t *);
|
||||
_SYS_NVPAIR_H int nvlist_remove(nvlist_t *, const char *, data_type_t);
|
||||
_SYS_NVPAIR_H int nvlist_remove_all(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H int nvlist_remove_nvpair(nvlist_t *, nvpair_t *);
|
||||
|
||||
int nvlist_lookup_boolean(nvlist_t *, const char *);
|
||||
int nvlist_lookup_boolean_value(nvlist_t *, const char *, boolean_t *);
|
||||
int nvlist_lookup_byte(nvlist_t *, const char *, uchar_t *);
|
||||
int nvlist_lookup_int8(nvlist_t *, const char *, int8_t *);
|
||||
int nvlist_lookup_uint8(nvlist_t *, const char *, uint8_t *);
|
||||
int nvlist_lookup_int16(nvlist_t *, const char *, int16_t *);
|
||||
int nvlist_lookup_uint16(nvlist_t *, const char *, uint16_t *);
|
||||
int nvlist_lookup_int32(nvlist_t *, const char *, int32_t *);
|
||||
int nvlist_lookup_uint32(nvlist_t *, const char *, uint32_t *);
|
||||
int nvlist_lookup_int64(nvlist_t *, const char *, int64_t *);
|
||||
int nvlist_lookup_uint64(nvlist_t *, const char *, uint64_t *);
|
||||
int nvlist_lookup_string(nvlist_t *, const char *, char **);
|
||||
int nvlist_lookup_nvlist(nvlist_t *, const char *, nvlist_t **);
|
||||
int nvlist_lookup_boolean_array(nvlist_t *, const char *,
|
||||
_SYS_NVPAIR_H int nvlist_lookup_boolean(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_boolean_value(nvlist_t *, const char *,
|
||||
boolean_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_byte(nvlist_t *, const char *, uchar_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_int8(nvlist_t *, const char *, int8_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_uint8(nvlist_t *, const char *, uint8_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_int16(nvlist_t *, const char *, int16_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_uint16(nvlist_t *, const char *, uint16_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_int32(nvlist_t *, const char *, int32_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_uint32(nvlist_t *, const char *, uint32_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_int64(nvlist_t *, const char *, int64_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_uint64(nvlist_t *, const char *, uint64_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_string(nvlist_t *, const char *, char **);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_nvlist(nvlist_t *, const char *, nvlist_t **);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_boolean_array(nvlist_t *, const char *,
|
||||
boolean_t **, uint_t *);
|
||||
int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **, uint_t *);
|
||||
int nvlist_lookup_int8_array(nvlist_t *, const char *, int8_t **, uint_t *);
|
||||
int nvlist_lookup_uint8_array(nvlist_t *, const char *, uint8_t **, uint_t *);
|
||||
int nvlist_lookup_int16_array(nvlist_t *, const char *, int16_t **, uint_t *);
|
||||
int nvlist_lookup_uint16_array(nvlist_t *, const char *, uint16_t **, uint_t *);
|
||||
int nvlist_lookup_int32_array(nvlist_t *, const char *, int32_t **, uint_t *);
|
||||
int nvlist_lookup_uint32_array(nvlist_t *, const char *, uint32_t **, uint_t *);
|
||||
int nvlist_lookup_int64_array(nvlist_t *, const char *, int64_t **, uint_t *);
|
||||
int nvlist_lookup_uint64_array(nvlist_t *, const char *, uint64_t **, uint_t *);
|
||||
int nvlist_lookup_string_array(nvlist_t *, const char *, char ***, uint_t *);
|
||||
int nvlist_lookup_nvlist_array(nvlist_t *, const char *,
|
||||
_SYS_NVPAIR_H int nvlist_lookup_byte_array(nvlist_t *, const char *, uchar_t **,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_int8_array(nvlist_t *, const char *, int8_t **,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_uint8_array(nvlist_t *, const char *,
|
||||
uint8_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_int16_array(nvlist_t *, const char *,
|
||||
int16_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_uint16_array(nvlist_t *, const char *,
|
||||
uint16_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_int32_array(nvlist_t *, const char *,
|
||||
int32_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_uint32_array(nvlist_t *, const char *,
|
||||
uint32_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_int64_array(nvlist_t *, const char *,
|
||||
int64_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_uint64_array(nvlist_t *, const char *,
|
||||
uint64_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_string_array(nvlist_t *, const char *,
|
||||
char ***, uint_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_nvlist_array(nvlist_t *, const char *,
|
||||
nvlist_t ***, uint_t *);
|
||||
int nvlist_lookup_hrtime(nvlist_t *, const char *, hrtime_t *);
|
||||
int nvlist_lookup_pairs(nvlist_t *, int, ...);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_hrtime(nvlist_t *, const char *, hrtime_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_pairs(nvlist_t *, int, ...);
|
||||
#if !defined(_KERNEL) && !defined(_STANDALONE)
|
||||
int nvlist_lookup_double(nvlist_t *, const char *, double *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_double(nvlist_t *, const char *, double *);
|
||||
#endif
|
||||
|
||||
int nvlist_lookup_nvpair(nvlist_t *, const char *, nvpair_t **);
|
||||
int nvlist_lookup_nvpair_embedded_index(nvlist_t *, const char *, nvpair_t **,
|
||||
int *, char **);
|
||||
boolean_t nvlist_exists(nvlist_t *, const char *);
|
||||
boolean_t nvlist_empty(nvlist_t *);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_nvpair(nvlist_t *, const char *, nvpair_t **);
|
||||
_SYS_NVPAIR_H int nvlist_lookup_nvpair_embedded_index(nvlist_t *, const char *,
|
||||
nvpair_t **, int *, char **);
|
||||
_SYS_NVPAIR_H boolean_t nvlist_exists(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H boolean_t nvlist_empty(nvlist_t *);
|
||||
|
||||
/* processing nvpair */
|
||||
nvpair_t *nvlist_next_nvpair(nvlist_t *, nvpair_t *);
|
||||
nvpair_t *nvlist_prev_nvpair(nvlist_t *, nvpair_t *);
|
||||
char *nvpair_name(nvpair_t *);
|
||||
data_type_t nvpair_type(nvpair_t *);
|
||||
int nvpair_type_is_array(nvpair_t *);
|
||||
int nvpair_value_boolean_value(nvpair_t *, boolean_t *);
|
||||
int nvpair_value_byte(nvpair_t *, uchar_t *);
|
||||
int nvpair_value_int8(nvpair_t *, int8_t *);
|
||||
int nvpair_value_uint8(nvpair_t *, uint8_t *);
|
||||
int nvpair_value_int16(nvpair_t *, int16_t *);
|
||||
int nvpair_value_uint16(nvpair_t *, uint16_t *);
|
||||
int nvpair_value_int32(nvpair_t *, int32_t *);
|
||||
int nvpair_value_uint32(nvpair_t *, uint32_t *);
|
||||
int nvpair_value_int64(nvpair_t *, int64_t *);
|
||||
int nvpair_value_uint64(nvpair_t *, uint64_t *);
|
||||
int nvpair_value_string(nvpair_t *, char **);
|
||||
int nvpair_value_nvlist(nvpair_t *, nvlist_t **);
|
||||
int nvpair_value_boolean_array(nvpair_t *, boolean_t **, uint_t *);
|
||||
int nvpair_value_byte_array(nvpair_t *, uchar_t **, uint_t *);
|
||||
int nvpair_value_int8_array(nvpair_t *, int8_t **, uint_t *);
|
||||
int nvpair_value_uint8_array(nvpair_t *, uint8_t **, uint_t *);
|
||||
int nvpair_value_int16_array(nvpair_t *, int16_t **, uint_t *);
|
||||
int nvpair_value_uint16_array(nvpair_t *, uint16_t **, uint_t *);
|
||||
int nvpair_value_int32_array(nvpair_t *, int32_t **, uint_t *);
|
||||
int nvpair_value_uint32_array(nvpair_t *, uint32_t **, uint_t *);
|
||||
int nvpair_value_int64_array(nvpair_t *, int64_t **, uint_t *);
|
||||
int nvpair_value_uint64_array(nvpair_t *, uint64_t **, uint_t *);
|
||||
int nvpair_value_string_array(nvpair_t *, char ***, uint_t *);
|
||||
int nvpair_value_nvlist_array(nvpair_t *, nvlist_t ***, uint_t *);
|
||||
int nvpair_value_hrtime(nvpair_t *, hrtime_t *);
|
||||
_SYS_NVPAIR_H nvpair_t *nvlist_next_nvpair(nvlist_t *, nvpair_t *);
|
||||
_SYS_NVPAIR_H nvpair_t *nvlist_prev_nvpair(nvlist_t *, nvpair_t *);
|
||||
_SYS_NVPAIR_H char *nvpair_name(nvpair_t *);
|
||||
_SYS_NVPAIR_H data_type_t nvpair_type(nvpair_t *);
|
||||
_SYS_NVPAIR_H int nvpair_type_is_array(nvpair_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_boolean_value(nvpair_t *, boolean_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_byte(nvpair_t *, uchar_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_int8(nvpair_t *, int8_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_uint8(nvpair_t *, uint8_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_int16(nvpair_t *, int16_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_uint16(nvpair_t *, uint16_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_int32(nvpair_t *, int32_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_uint32(nvpair_t *, uint32_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_int64(nvpair_t *, int64_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_uint64(nvpair_t *, uint64_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_string(nvpair_t *, char **);
|
||||
_SYS_NVPAIR_H int nvpair_value_nvlist(nvpair_t *, nvlist_t **);
|
||||
_SYS_NVPAIR_H int nvpair_value_boolean_array(nvpair_t *, boolean_t **,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_byte_array(nvpair_t *, uchar_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_int8_array(nvpair_t *, int8_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_uint8_array(nvpair_t *, uint8_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_int16_array(nvpair_t *, int16_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_uint16_array(nvpair_t *, uint16_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_int32_array(nvpair_t *, int32_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_uint32_array(nvpair_t *, uint32_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_int64_array(nvpair_t *, int64_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_uint64_array(nvpair_t *, uint64_t **, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_string_array(nvpair_t *, char ***, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_nvlist_array(nvpair_t *, nvlist_t ***, uint_t *);
|
||||
_SYS_NVPAIR_H int nvpair_value_hrtime(nvpair_t *, hrtime_t *);
|
||||
#if !defined(_KERNEL) && !defined(_STANDALONE)
|
||||
int nvpair_value_double(nvpair_t *, double *);
|
||||
_SYS_NVPAIR_H int nvpair_value_double(nvpair_t *, double *);
|
||||
#endif
|
||||
|
||||
nvlist_t *fnvlist_alloc(void);
|
||||
void fnvlist_free(nvlist_t *);
|
||||
size_t fnvlist_size(nvlist_t *);
|
||||
char *fnvlist_pack(nvlist_t *, size_t *);
|
||||
void fnvlist_pack_free(char *, size_t);
|
||||
nvlist_t *fnvlist_unpack(char *, size_t);
|
||||
nvlist_t *fnvlist_dup(nvlist_t *);
|
||||
void fnvlist_merge(nvlist_t *, nvlist_t *);
|
||||
size_t fnvlist_num_pairs(nvlist_t *);
|
||||
_SYS_NVPAIR_H nvlist_t *fnvlist_alloc(void);
|
||||
_SYS_NVPAIR_H void fnvlist_free(nvlist_t *);
|
||||
_SYS_NVPAIR_H size_t fnvlist_size(nvlist_t *);
|
||||
_SYS_NVPAIR_H char *fnvlist_pack(nvlist_t *, size_t *);
|
||||
_SYS_NVPAIR_H void fnvlist_pack_free(char *, size_t);
|
||||
_SYS_NVPAIR_H nvlist_t *fnvlist_unpack(char *, size_t);
|
||||
_SYS_NVPAIR_H nvlist_t *fnvlist_dup(nvlist_t *);
|
||||
_SYS_NVPAIR_H void fnvlist_merge(nvlist_t *, nvlist_t *);
|
||||
_SYS_NVPAIR_H size_t fnvlist_num_pairs(nvlist_t *);
|
||||
|
||||
void fnvlist_add_boolean(nvlist_t *, const char *);
|
||||
void fnvlist_add_boolean_value(nvlist_t *, const char *, boolean_t);
|
||||
void fnvlist_add_byte(nvlist_t *, const char *, uchar_t);
|
||||
void fnvlist_add_int8(nvlist_t *, const char *, int8_t);
|
||||
void fnvlist_add_uint8(nvlist_t *, const char *, uint8_t);
|
||||
void fnvlist_add_int16(nvlist_t *, const char *, int16_t);
|
||||
void fnvlist_add_uint16(nvlist_t *, const char *, uint16_t);
|
||||
void fnvlist_add_int32(nvlist_t *, const char *, int32_t);
|
||||
void fnvlist_add_uint32(nvlist_t *, const char *, uint32_t);
|
||||
void fnvlist_add_int64(nvlist_t *, const char *, int64_t);
|
||||
void fnvlist_add_uint64(nvlist_t *, const char *, uint64_t);
|
||||
void fnvlist_add_string(nvlist_t *, const char *, const char *);
|
||||
void fnvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *);
|
||||
void fnvlist_add_nvpair(nvlist_t *, nvpair_t *);
|
||||
void fnvlist_add_boolean_array(nvlist_t *, const char *, boolean_t *, uint_t);
|
||||
void fnvlist_add_byte_array(nvlist_t *, const char *, uchar_t *, uint_t);
|
||||
void fnvlist_add_int8_array(nvlist_t *, const char *, int8_t *, uint_t);
|
||||
void fnvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *, uint_t);
|
||||
void fnvlist_add_int16_array(nvlist_t *, const char *, int16_t *, uint_t);
|
||||
void fnvlist_add_uint16_array(nvlist_t *, const char *, uint16_t *, uint_t);
|
||||
void fnvlist_add_int32_array(nvlist_t *, const char *, int32_t *, uint_t);
|
||||
void fnvlist_add_uint32_array(nvlist_t *, const char *, uint32_t *, uint_t);
|
||||
void fnvlist_add_int64_array(nvlist_t *, const char *, int64_t *, uint_t);
|
||||
void fnvlist_add_uint64_array(nvlist_t *, const char *, uint64_t *, uint_t);
|
||||
void fnvlist_add_string_array(nvlist_t *, const char *, char * const *, uint_t);
|
||||
void fnvlist_add_nvlist_array(nvlist_t *, const char *, nvlist_t **, uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_boolean(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H void fnvlist_add_boolean_value(nvlist_t *, const char *,
|
||||
boolean_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_byte(nvlist_t *, const char *, uchar_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_int8(nvlist_t *, const char *, int8_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_uint8(nvlist_t *, const char *, uint8_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_int16(nvlist_t *, const char *, int16_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_uint16(nvlist_t *, const char *, uint16_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_int32(nvlist_t *, const char *, int32_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_uint32(nvlist_t *, const char *, uint32_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_int64(nvlist_t *, const char *, int64_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_uint64(nvlist_t *, const char *, uint64_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_string(nvlist_t *, const char *, const char *);
|
||||
_SYS_NVPAIR_H void fnvlist_add_nvlist(nvlist_t *, const char *, nvlist_t *);
|
||||
_SYS_NVPAIR_H void fnvlist_add_nvpair(nvlist_t *, nvpair_t *);
|
||||
_SYS_NVPAIR_H void fnvlist_add_boolean_array(nvlist_t *, const char *,
|
||||
boolean_t *, uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_byte_array(nvlist_t *, const char *, uchar_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_int8_array(nvlist_t *, const char *, int8_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_uint8_array(nvlist_t *, const char *, uint8_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_int16_array(nvlist_t *, const char *, int16_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_uint16_array(nvlist_t *, const char *,
|
||||
uint16_t *, uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_int32_array(nvlist_t *, const char *, int32_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_uint32_array(nvlist_t *, const char *,
|
||||
uint32_t *, uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_int64_array(nvlist_t *, const char *, int64_t *,
|
||||
uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_uint64_array(nvlist_t *, const char *,
|
||||
uint64_t *, uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_string_array(nvlist_t *, const char *,
|
||||
char * const *, uint_t);
|
||||
_SYS_NVPAIR_H void fnvlist_add_nvlist_array(nvlist_t *, const char *,
|
||||
nvlist_t **, uint_t);
|
||||
|
||||
void fnvlist_remove(nvlist_t *, const char *);
|
||||
void fnvlist_remove_nvpair(nvlist_t *, nvpair_t *);
|
||||
_SYS_NVPAIR_H void fnvlist_remove(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H void fnvlist_remove_nvpair(nvlist_t *, nvpair_t *);
|
||||
|
||||
nvpair_t *fnvlist_lookup_nvpair(nvlist_t *, const char *);
|
||||
boolean_t fnvlist_lookup_boolean(nvlist_t *, const char *);
|
||||
boolean_t fnvlist_lookup_boolean_value(nvlist_t *, const char *);
|
||||
uchar_t fnvlist_lookup_byte(nvlist_t *, const char *);
|
||||
int8_t fnvlist_lookup_int8(nvlist_t *, const char *);
|
||||
int16_t fnvlist_lookup_int16(nvlist_t *, const char *);
|
||||
int32_t fnvlist_lookup_int32(nvlist_t *, const char *);
|
||||
int64_t fnvlist_lookup_int64(nvlist_t *, const char *);
|
||||
uint8_t fnvlist_lookup_uint8(nvlist_t *, const char *);
|
||||
uint16_t fnvlist_lookup_uint16(nvlist_t *, const char *);
|
||||
uint32_t fnvlist_lookup_uint32(nvlist_t *, const char *);
|
||||
uint64_t fnvlist_lookup_uint64(nvlist_t *, const char *);
|
||||
char *fnvlist_lookup_string(nvlist_t *, const char *);
|
||||
nvlist_t *fnvlist_lookup_nvlist(nvlist_t *, const char *);
|
||||
boolean_t *fnvlist_lookup_boolean_array(nvlist_t *, const char *, uint_t *);
|
||||
uchar_t *fnvlist_lookup_byte_array(nvlist_t *, const char *, uint_t *);
|
||||
int8_t *fnvlist_lookup_int8_array(nvlist_t *, const char *, uint_t *);
|
||||
uint8_t *fnvlist_lookup_uint8_array(nvlist_t *, const char *, uint_t *);
|
||||
int16_t *fnvlist_lookup_int16_array(nvlist_t *, const char *, uint_t *);
|
||||
uint16_t *fnvlist_lookup_uint16_array(nvlist_t *, const char *, uint_t *);
|
||||
int32_t *fnvlist_lookup_int32_array(nvlist_t *, const char *, uint_t *);
|
||||
uint32_t *fnvlist_lookup_uint32_array(nvlist_t *, const char *, uint_t *);
|
||||
int64_t *fnvlist_lookup_int64_array(nvlist_t *, const char *, uint_t *);
|
||||
uint64_t *fnvlist_lookup_uint64_array(nvlist_t *, const char *, uint_t *);
|
||||
_SYS_NVPAIR_H nvpair_t *fnvlist_lookup_nvpair(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H boolean_t fnvlist_lookup_boolean(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H boolean_t fnvlist_lookup_boolean_value(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H uchar_t fnvlist_lookup_byte(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H int8_t fnvlist_lookup_int8(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H int16_t fnvlist_lookup_int16(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H int32_t fnvlist_lookup_int32(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H int64_t fnvlist_lookup_int64(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H uint8_t fnvlist_lookup_uint8(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H uint16_t fnvlist_lookup_uint16(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H uint32_t fnvlist_lookup_uint32(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H uint64_t fnvlist_lookup_uint64(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H char *fnvlist_lookup_string(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H nvlist_t *fnvlist_lookup_nvlist(nvlist_t *, const char *);
|
||||
_SYS_NVPAIR_H boolean_t *fnvlist_lookup_boolean_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H uchar_t *fnvlist_lookup_byte_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H int8_t *fnvlist_lookup_int8_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H uint8_t *fnvlist_lookup_uint8_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H int16_t *fnvlist_lookup_int16_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H uint16_t *fnvlist_lookup_uint16_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H int32_t *fnvlist_lookup_int32_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H uint32_t *fnvlist_lookup_uint32_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H int64_t *fnvlist_lookup_int64_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
_SYS_NVPAIR_H uint64_t *fnvlist_lookup_uint64_array(nvlist_t *, const char *,
|
||||
uint_t *);
|
||||
|
||||
boolean_t fnvpair_value_boolean_value(nvpair_t *nvp);
|
||||
uchar_t fnvpair_value_byte(nvpair_t *nvp);
|
||||
int8_t fnvpair_value_int8(nvpair_t *nvp);
|
||||
int16_t fnvpair_value_int16(nvpair_t *nvp);
|
||||
int32_t fnvpair_value_int32(nvpair_t *nvp);
|
||||
int64_t fnvpair_value_int64(nvpair_t *nvp);
|
||||
uint8_t fnvpair_value_uint8(nvpair_t *nvp);
|
||||
uint16_t fnvpair_value_uint16(nvpair_t *nvp);
|
||||
uint32_t fnvpair_value_uint32(nvpair_t *nvp);
|
||||
uint64_t fnvpair_value_uint64(nvpair_t *nvp);
|
||||
char *fnvpair_value_string(nvpair_t *nvp);
|
||||
nvlist_t *fnvpair_value_nvlist(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H boolean_t fnvpair_value_boolean_value(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H uchar_t fnvpair_value_byte(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H int8_t fnvpair_value_int8(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H int16_t fnvpair_value_int16(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H int32_t fnvpair_value_int32(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H int64_t fnvpair_value_int64(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H uint8_t fnvpair_value_uint8(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H uint16_t fnvpair_value_uint16(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H uint32_t fnvpair_value_uint32(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H uint64_t fnvpair_value_uint64(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H char *fnvpair_value_string(nvpair_t *nvp);
|
||||
_SYS_NVPAIR_H nvlist_t *fnvpair_value_nvlist(nvpair_t *nvp);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
+10
-26
@@ -25,7 +25,7 @@
|
||||
*/
|
||||
|
||||
#ifndef _THREAD_POOL_H_
|
||||
#define _THREAD_POOL_H_
|
||||
#define _THREAD_POOL_H_ extern __attribute__((visibility("default")))
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <thread.h>
|
||||
@@ -37,33 +37,17 @@ extern "C" {
|
||||
|
||||
typedef struct tpool tpool_t; /* opaque thread pool descriptor */
|
||||
|
||||
#if defined(__STDC__)
|
||||
|
||||
extern tpool_t *tpool_create(uint_t min_threads, uint_t max_threads,
|
||||
_THREAD_POOL_H_ tpool_t *tpool_create(uint_t min_threads, uint_t max_threads,
|
||||
uint_t linger, pthread_attr_t *attr);
|
||||
extern int tpool_dispatch(tpool_t *tpool,
|
||||
_THREAD_POOL_H_ int tpool_dispatch(tpool_t *tpool,
|
||||
void (*func)(void *), void *arg);
|
||||
extern void tpool_destroy(tpool_t *tpool);
|
||||
extern void tpool_abandon(tpool_t *tpool);
|
||||
extern void tpool_wait(tpool_t *tpool);
|
||||
extern void tpool_suspend(tpool_t *tpool);
|
||||
extern int tpool_suspended(tpool_t *tpool);
|
||||
extern void tpool_resume(tpool_t *tpool);
|
||||
extern int tpool_member(tpool_t *tpool);
|
||||
|
||||
#else /* Non ANSI */
|
||||
|
||||
extern tpool_t *tpool_create();
|
||||
extern int tpool_dispatch();
|
||||
extern void tpool_destroy();
|
||||
extern void tpool_abandon();
|
||||
extern void tpool_wait();
|
||||
extern void tpool_suspend();
|
||||
extern int tpool_suspended();
|
||||
extern void tpool_resume();
|
||||
extern int tpool_member();
|
||||
|
||||
#endif /* __STDC__ */
|
||||
_THREAD_POOL_H_ void tpool_destroy(tpool_t *tpool);
|
||||
_THREAD_POOL_H_ void tpool_abandon(tpool_t *tpool);
|
||||
_THREAD_POOL_H_ void tpool_wait(tpool_t *tpool);
|
||||
_THREAD_POOL_H_ void tpool_suspend(tpool_t *tpool);
|
||||
_THREAD_POOL_H_ int tpool_suspended(tpool_t *tpool);
|
||||
_THREAD_POOL_H_ void tpool_resume(tpool_t *tpool);
|
||||
_THREAD_POOL_H_ int tpool_member(tpool_t *tpool);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user