__gnu_pbds(3) Library Functions Manual __gnu_pbds(3)NAME
__gnu_pbds -
SYNOPSIS
Classes
struct associative_tag
class basic_branch
struct basic_branch_tag
class basic_hash_table
struct basic_hash_tag
struct basic_invalidation_guarantee
struct binary_heap_tag
struct binomial_heap_tag
class cc_hash_max_collision_check_resize_trigger
class cc_hash_table
struct cc_hash_tag
struct container_error
struct container_tag
struct container_traits
struct container_traits_base
struct container_traits_base< binary_heap_tag >
struct container_traits_base< binomial_heap_tag >
struct container_traits_base< cc_hash_tag >
struct container_traits_base< gp_hash_tag >
struct container_traits_base< list_update_tag >
struct container_traits_base< ov_tree_tag >
struct container_traits_base< pairing_heap_tag >
struct container_traits_base< pat_trie_tag >
struct container_traits_base< rb_tree_tag >
struct container_traits_base< rc_binomial_heap_tag >
struct container_traits_base< splay_tree_tag >
struct container_traits_base< thin_heap_tag >
class direct_mask_range_hashing
class direct_mod_range_hashing
class gp_hash_table
struct gp_hash_tag
class hash_exponential_size_policy
class hash_load_check_resize_trigger
class hash_prime_size_policy
class hash_standard_resize_policy
struct insert_error
struct join_error
class linear_probe_fn
class list_update
struct list_update_tag
class lu_counter_policy
class lu_move_to_front_policy
struct null_node_update
struct null_type
struct ov_tree_tag
struct pairing_heap_tag
struct pat_trie_tag
struct point_invalidation_guarantee
class priority_queue
struct priority_queue_tag
class quadratic_probe_fn
struct range_invalidation_guarantee
struct rb_tree_tag
struct rc_binomial_heap_tag
struct resize_error
class sample_probe_fn
class sample_range_hashing
class sample_ranged_hash_fn
class sample_ranged_probe_fn
class sample_resize_policy
class sample_resize_trigger
class sample_size_policy
class sample_tree_node_update
struct sample_trie_access_traits
class sample_trie_node_update
struct sample_update_policy
struct sequence_tag
struct splay_tree_tag
struct string_tag
struct thin_heap_tag
class tree
class tree_order_statistics_node_update
struct tree_tag
class trie
class trie_order_statistics_node_update
class trie_prefix_search_node_update
struct trie_string_access_traits
struct trie_tag
struct trivial_iterator_tag
Typedefs
typedef void trivial_iterator_difference_type
Functions
void __throw_container_error ()
void __throw_insert_error ()
void __throw_join_error ()
void __throw_resize_error ()
Detailed Description
GNU extensions for policy-based data structures for public use.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Jun 10 2014 __gnu_pbds(3)
Check Out this Related Man Page
DECLARE_GEOM_CLASS(9) BSD Kernel Developer's Manual DECLARE_GEOM_CLASS(9)NAME
DECLARE_GEOM_CLASS -- GEOM class declaration macro
SYNOPSIS
#include <geom/geom.h>
DECLARE_GEOM_CLASS(class, mod_name);
DESCRIPTION
The DECLARE_GEOM_CLASS() macro registers a GEOM class in GEOM. A GEOM class itself implements one particular kind of transformation. Typi-
cal examples are: MBR disk partition, BSD disklabel and RAID5 classes. DECLARE_GEOM_CLASS() can be used both for compiled in and loaded as
kld(4) modules GEOM classes and it is the only official way for class registration.
The arguments to DECLARE_GEOM_CLASS() are:
class The g_class structure which describes a GEOM class.
mod_name A kernel module name (not a class name!).
Structure g_class contains data describing the class. They are:
const char * name
Class name.
g_taste_t * taste
Pointer to function used for taste event handling. If it is non-NULL it is called in three situations:
- On class activation, all existing providers are offered for tasting.
- When new provider is created it is offered for tasting.
- After last write access to a provider is closed it is offered for retasting (on first write open event ``spoil'' was sent).
g_config_t * config
This field is not used anymore, its functionality was replaced by the ctlreq field.
g_ctl_req_t * ctlreq
Pointer to function used for handling events from userland applications.
g_init_t * init
Pointer to function which is called right after class registration.
g_fini_t * fini
Pointer to function which is called right before class deregistration.
g_ctl_destroy_geom_t * destroy_geom
Pointer to a function which is called for every geom on class unload. If this field is not set, the class can not be unloaded.
Only a name field is required; the rest are optional.
RESTRICTIONS /CONDITIONS
The fields of g_class should always be initialized using C99-style field naming (see the initialization of example_class below).
EXAMPLES
Example class declaration.
static struct g_geom *
g_example_taste(struct g_class *mp, struct g_provider *pp,
int flags __unused)
{
g_topology_assert();
[...]
}
static void
g_example_ctlreq(struct gctl_req *req, struct g_class *cp,
char const *verb)
{
[...]
}
static int
g_example_destroy_geom(struct gctl_req *req, struct g_class *cp,
struct g_geom *gp)
{
g_topology_assert();
[...]
}
static void
g_example_init(struct g_class *mp)
{
[...]
}
static void
g_example_fini(struct g_class *mp)
{
[...]
}
struct g_class example_class = {
.name = "EXAMPLE",
.taste = g_example_taste,
.ctlreq = g_example_ctlreq,
.init = g_example_init,
.fini = g_example_fini,
.destroy_geom = g_example_destroy_geom
};
DECLARE_GEOM_CLASS(example_class, g_example);
SEE ALSO geom(4), g_attach(9), g_bio(9), g_consumer(9), g_data(9), g_event(9), g_geom(9), g_provider(9), g_provider_by_name(9), g_wither_geom(9)AUTHORS
This manual page was written by Pawel Jakub Dawidek <pjd@FreeBSD.org>.
BSD August 13, 2007 BSD