id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
vdo_dump_status(9) | NAME vdo_dump_status - Dump status information about a vdo to the log for debugging.
SYNOPSIS void vdo_dump_status (const struct vdo *vdo );
ARGUMENTS vdo The vdo to dump.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initialize_device_registry_once(9), filter_vdos_locked(9), vdo_... |
vdo_enable_read_only_entry(9) | NAME vdo_enable_read_only_entry - Enable a vdo to enter read-only mode on errors.
SYNOPSIS int vdo_enable_read_only_entry (struct vdo *vdo );
ARGUMENTS vdo The vdo to enable.
RETURN VDO_SUCCESS or an error.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initialize_device_registry_once(9)... |
vdo_encode_component_states(9) | NAME vdo_encode_component_states - Encode the state of all vdo components in the super block.
SYNOPSIS void vdo_encode_component_states (u8 *buffer , size_t *offset , const struct vdo_component_states *states );
ARGUMENTS buffer A buffer to store the encoding.
offset The offset into the buffer to st... |
vdo_encode_super_block(9) | NAME vdo_encode_super_block - Encode a super block into its on-disk representation.
SYNOPSIS void vdo_encode_super_block (u8 *buffer , struct vdo_component_states *states );
ARGUMENTS buffer A buffer to store the encoding.
states The component states to encode.
SEE ALSO Kernel file ./drivers/md/d... |
vdo_enqueue_clean_slab_waiter(9) | NAME vdo_enqueue_clean_slab_waiter - Wait for a clean slab.
SYNOPSIS int vdo_enqueue_clean_slab_waiter (struct block_allocator *allocator , struct vdo_waiter *waiter );
ARGUMENTS allocator The block_allocator on which to wait.
waiter The waiter.
RETURN VDO_SUCCESS if the waiter was queued, VDO_NO_SPAC... |
vdo_enter_read_only_mode(9) | NAME vdo_enter_read_only_mode - Put a VDO into read-only mode and save the read-only state in the super block.
SYNOPSIS void vdo_enter_read_only_mode (struct vdo *vdo , int error_code );
ARGUMENTS vdo The vdo.
error_code The error which caused the VDO to enter read-only mode.
DESCRIPTION This method... |
vdo_enter_recovery_mode(9) | NAME vdo_enter_recovery_mode - Put the vdo into recovery mode.
SYNOPSIS void vdo_enter_recovery_mode (struct vdo *vdo );
ARGUMENTS vdo The vdo.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initialize_device_registry_once(9), filter_vdos_locked(9), vdo_find_matching(9), initializ... |
vdo_entry_callback_fn(9) | NAME vdo_entry_callback_fn - A function to be called for each allocated PBN when traversing the forest.
SYNOPSIS int vdo_entry_callback_fn (physical_block_number_t pbn , struct vdo_completion *completion );
ARGUMENTS pbn A PBN of a tree node.
completion The parent completion of the traversal.
RETURN... |
vdo_fail_completion(9) | NAME vdo_fail_completion - Set the result of a completion if it does not already have an error, then finish it.
SYNOPSIS void vdo_fail_completion (struct vdo_completion *completion , int result );
ARGUMENTS completion -- undescribed --
result -- undescribed --
SEE ALSO Kernel file ./drivers/md/dm-vdo/c... |
vdo_fetch_statistics(9) | NAME vdo_fetch_statistics - Fetch statistics on the correct thread.
SYNOPSIS void vdo_fetch_statistics (struct vdo *vdo , struct vdo_statistics *stats );
ARGUMENTS vdo The vdo.
stats The vdo statistics are returned here.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_in... |
vdo_fetch_statistics_callback(9) | NAME vdo_fetch_statistics_callback - Action to populate a vdo_statistics structure on the admin thread.
SYNOPSIS void vdo_fetch_statistics_callback (struct vdo_completion *completion );
ARGUMENTS completion The completion.
DESCRIPTION This callback is registered in vdo_fetch_statistics.
SEE ALSO Kernel file ./d... |
vdo_filter_fn(9) | NAME vdo_filter_fn - Method type for vdo matching methods.
SYNOPSIS bool vdo_filter_fn (struct vdo *vdo , const void *context );
ARGUMENTS vdo The vdo to match.
context A parameter for the filter to use.
RETURN True if the vdo matches the filter criteria, false if it doesn't.
SEE ALSO Kernel fil... |
vdo_find_block_map_slot(9) | NAME vdo_find_block_map_slot - Find the block map slot in which the block map entry for a data_vio resides and cache that result in the data_vio.
SYNOPSIS void vdo_find_block_map_slot (struct data_vio *data_vio );
ARGUMENTS data_vio The data vio.
DESCRIPTION All ancestors in the tree will be allocated or loaded, ... |
vdo_find_matching(9) | NAME vdo_find_matching - Find and return the first (if any) vdo matching a given filter function.
SYNOPSIS struct vdo * vdo_find_matching (vdo_filter_fn filter , const void *context );
ARGUMENTS filter The filter function to apply to vdos.
context A bit of context to provide the filter.
SEE ALSO Ker... |
vdo_finish_draining(9) | NAME vdo_finish_draining - Finish a drain operation if one was in progress.
SYNOPSIS bool vdo_finish_draining (struct admin_state *state );
ARGUMENTS state The current admin state.
RETURN true if the state was draining; will notify the waiter if so.
SEE ALSO Kernel file ./drivers/md/dm-vdo/admin-state.c ge... |
vdo_finish_draining_with_result(9) | NAME vdo_finish_draining_with_result - Finish a drain operation with a status code.
SYNOPSIS bool vdo_finish_draining_with_result (struct admin_state *state , int result );
ARGUMENTS state The current admin state.
result The result of the drain operation.
RETURN true if the state was draining; wil... |
vdo_finish_loading(9) | NAME vdo_finish_loading - Finish a load operation if one was in progress.
SYNOPSIS bool vdo_finish_loading (struct admin_state *state );
ARGUMENTS state The current admin state.
RETURN true if the state was loading; will notify the waiter if so.
SEE ALSO Kernel file ./drivers/md/dm-vdo/admin-state.c get_ne... |
vdo_finish_loading_with_result(9) | NAME vdo_finish_loading_with_result - Finish a load operation with a status code.
SYNOPSIS bool vdo_finish_loading_with_result (struct admin_state *state , int result );
ARGUMENTS state The current admin state.
result The result of the load operation.
RETURN true if the state was loading; will not... |
vdo_finish_operation(9) | NAME vdo_finish_operation - Finish the current operation.
SYNOPSIS bool vdo_finish_operation (struct admin_state *state , int result );
ARGUMENTS state The current admin state.
result The result of the operation.
DESCRIPTION Will notify the operation waiter if there is one. This method should be u... |
vdo_finish_resuming(9) | NAME vdo_finish_resuming - Finish a resume operation if one was in progress.
SYNOPSIS bool vdo_finish_resuming (struct admin_state *state );
ARGUMENTS state The current admin state.
RETURN true if the state was resuming; will notify the waiter if so.
SEE ALSO Kernel file ./drivers/md/dm-vdo/admin-state.c g... |
vdo_finish_resuming_with_result(9) | NAME vdo_finish_resuming_with_result - Finish a resume operation with a status code.
SYNOPSIS bool vdo_finish_resuming_with_result (struct admin_state *state , int result );
ARGUMENTS state The current admin state.
result The result of the resume operation.
RETURN true if the state was resuming; w... |
vdo_flush_packer(9) | NAME vdo_flush_packer - Request that the packer flush asynchronously.
SYNOPSIS void vdo_flush_packer (struct packer *packer );
ARGUMENTS packer The packer to flush.
DESCRIPTION All bins with at least two compressed data blocks will be written out, and any solitary pending VIOs will be released from the packer.... |
vdo_free_flusher(9) | NAME vdo_free_flusher - Free a flusher.
SYNOPSIS void vdo_free_flusher (struct flusher *flusher );
ARGUMENTS flusher The flusher to free.
SEE ALSO Kernel file ./drivers/md/dm-vdo/flush.c assert_on_flusher_thread(9), as_flusher(9), completion_as_vdo_flush(9), vdo_waiter_as_flush(9), vdo_make_flusher(9), ... |
vdo_free_hash_zones(9) | NAME vdo_free_hash_zones - Free the hash zones.
SYNOPSIS void vdo_free_hash_zones (struct hash_zones *zones );
ARGUMENTS zones The zone to free.
SEE ALSO Kernel file ./drivers/md/dm-vdo/dedupe.c Kernel API(9), return_hash_lock_to_pool(9), vdo_get_duplicate_lock(9), hash_lock_key(9), get_hash_lock_state... |
vdo_free_io_submitter(9) | NAME vdo_free_io_submitter - Free the io_submitter fields and structure as needed.
SYNOPSIS void vdo_free_io_submitter (struct io_submitter *io_submitter );
ARGUMENTS io_submitter The I/O submitter data to destroy.
DESCRIPTION This must be called after vdo_cleanup_io_submitter. It is used to release resources late i... |
vdo_free_logical_zones(9) | NAME vdo_free_logical_zones - Free a set of logical zones.
SYNOPSIS void vdo_free_logical_zones (struct logical_zones *zones );
ARGUMENTS zones The set of zones to free.
SEE ALSO Kernel file ./drivers/md/dm-vdo/logical-zone.c as_logical_zone(9), initialize_zone(9), vdo_make_logical_zones(9), check_for_drain... |
vdo_free_packer(9) | NAME vdo_free_packer - Free a block packer.
SYNOPSIS void vdo_free_packer (struct packer *packer );
ARGUMENTS packer The packer to free.
SEE ALSO Kernel file ./drivers/md/dm-vdo/packer.c vdo_get_compressed_block_fragment(9), assert_on_packer_thread(9), insert_in_sorted_list(9), make_bin(9), vdo_make_packer(... |
vdo_free_physical_zones(9) | NAME vdo_free_physical_zones - Destroy the physical zones.
SYNOPSIS void vdo_free_physical_zones (struct physical_zones *zones );
ARGUMENTS zones The zones to free.
SEE ALSO Kernel file ./drivers/md/dm-vdo/physical-zone.c vdo_is_pbn_read_lock(9), vdo_downgrade_pbn_write_lock(9), vdo_claim_pbn_lock_increment(9)... |
vdo_free_priority_table(9) | NAME vdo_free_priority_table - Free a priority_table.
SYNOPSIS void vdo_free_priority_table (struct priority_table *table );
ARGUMENTS table The table to free.
DESCRIPTION The table does not own the entries stored in it and they are not freed by this call.
SEE ALSO Kernel file ./drivers/md/dm-vdo/priority-t... |
vdo_free_recovery_journal(9) | NAME vdo_free_recovery_journal - Free a recovery journal.
SYNOPSIS void vdo_free_recovery_journal (struct recovery_journal *journal );
ARGUMENTS journal The recovery journal to free.
SEE ALSO Kernel file ./drivers/md/dm-vdo/recovery-journal.c Kernel API(9), get_zone_count_ptr(9), get_counter(9), is_journal_z... |
vdo_free_slab_depot(9) | NAME vdo_free_slab_depot - Destroy a slab depot.
SYNOPSIS void vdo_free_slab_depot (struct slab_depot *depot );
ARGUMENTS depot The depot to destroy.
SEE ALSO Kernel file ./drivers/md/dm-vdo/slab-depot.c get_lock(9), must_make_entries_to_flush(9), is_reaping(9), initialize_tail_block(9), initialize_journal_... |
vdo_get_admin_state(9) | NAME vdo_get_admin_state - Get the admin state of the vdo.
SYNOPSIS const struct admin_state_code * vdo_get_admin_state (const struct vdo *vdo );
ARGUMENTS vdo The vdo.
RETURN The code for the vdo's current admin state.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initialize_devic... |
vdo_get_backing_device(9) | NAME vdo_get_backing_device - Get the block device object underlying a vdo.
SYNOPSIS struct block_device * vdo_get_backing_device (const struct vdo *vdo );
ARGUMENTS vdo The vdo.
RETURN The vdo's current block device.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initialize_device_... |
vdo_get_cached_page(9) | NAME vdo_get_cached_page - Get the block map page from a page completion.
SYNOPSIS int vdo_get_cached_page (struct vdo_completion *completion , struct block_map_page **page_ptr );
ARGUMENTS completion A vdo page completion whose callback has been called.
page_ptr A pointer to hold the page
RETURN VDO_SUC... |
vdo_get_callback_thread_id(9) | NAME vdo_get_callback_thread_id - Get the id of the callback thread on which a completion is currently running.
SYNOPSIS thread_id_t vdo_get_callback_thread_id (void );
ARGUMENTS void no arguments
RETURN The current thread ID, or -1 if no such thread.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel... |
vdo_get_compressed_block_fragment(9) | NAME vdo_get_compressed_block_fragment - Get a reference to a compressed fragment from a compressed block.
SYNOPSIS int vdo_get_compressed_block_fragment (enum block_mapping_state mapping_state , struct compressed_block *block , u16 *fragment_offset , u16 *fragment_size );
ARGUMENTS mapping_state The mapping state de... |
vdo_get_compressing(9) | NAME vdo_get_compressing - Get whether compression is enabled in a vdo.
SYNOPSIS bool vdo_get_compressing (struct vdo *vdo );
ARGUMENTS vdo The vdo.
RETURN State of compression.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initialize_device_registry_once(9), filter_vdos_locked(9)... |
vdo_get_data_region_start(9) | NAME vdo_get_data_region_start - Get the start of the data region from a geometry.
SYNOPSIS physical_block_number_t vdo_get_data_region_start (struct volume_geometry geometry );
ARGUMENTS geometry The geometry.
RETURN The start of the data region.
SEE ALSO Kernel file ./drivers/md/dm-vdo/encodings.h Kernel A... |
vdo_get_dedupe_statistics(9) | NAME vdo_get_dedupe_statistics - Tally the statistics from all the hash zones and the UDS index.
SYNOPSIS void vdo_get_dedupe_statistics (struct hash_zones *zones , struct vdo_statistics *stats );
ARGUMENTS zones The hash zones to query.
stats A structure to store the statistics.
RETURN The sum o... |
vdo_get_device_name(9) | NAME vdo_get_device_name - Get the device name associated with the vdo target.
SYNOPSIS const char * vdo_get_device_name (const struct dm_target *target );
ARGUMENTS target The target device interface.
RETURN The block device name.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initial... |
vdo_get_duplicate_lock(9) | NAME vdo_get_duplicate_lock - Get the PBN lock on the duplicate data location for a data_vio from the hash_lock the data_vio holds (if there is one).
SYNOPSIS struct pbn_lock * vdo_get_duplicate_lock (struct data_vio *data_vio );
ARGUMENTS data_vio The data_vio to query.
RETURN The PBN lock on the data_vio's dupl... |
vdo_get_flusher_thread_id(9) | NAME vdo_get_flusher_thread_id - Get the ID of the thread on which flusher functions should be called.
SYNOPSIS thread_id_t vdo_get_flusher_thread_id (struct flusher *flusher );
ARGUMENTS flusher The flusher to query.
RETURN The ID of the thread which handles the flusher.
SEE ALSO Kernel file ./drivers/md/dm-v... |
vdo_get_increment_limit(9) | NAME vdo_get_increment_limit - Determine how many new references a block can acquire.
SYNOPSIS u8 vdo_get_increment_limit (struct slab_depot *depot , physical_block_number_t pbn );
ARGUMENTS depot The slab depot.
pbn The physical block number that is being queried.
CONTEXT This method must be c... |
vdo_get_index_region_size(9) | NAME vdo_get_index_region_size - Get the size of the index region from a geometry.
SYNOPSIS physical_block_number_t vdo_get_index_region_size (struct volume_geometry geometry );
ARGUMENTS geometry The geometry.
RETURN The size of the index region.
SEE ALSO Kernel file ./drivers/md/dm-vdo/encodings.h Kernel A... |
vdo_get_index_region_start(9) | NAME vdo_get_index_region_start - Get the start of the index region from a geometry.
SYNOPSIS physical_block_number_t vdo_get_index_region_start (struct volume_geometry geometry );
ARGUMENTS geometry The geometry.
RETURN The start of the index region.
SEE ALSO Kernel file ./drivers/md/dm-vdo/encodings.h Kerne... |
vdo_get_journal_block_map_data_blocks_used(9) | NAME vdo_get_journal_block_map_data_blocks_used - Get the number of block map pages, allocated from data blocks, currently in use.
SYNOPSIS block_count_t vdo_get_journal_block_map_data_blocks_used (struct recovery_journal *journal );
ARGUMENTS journal The journal in question.
RETURN The number of block map pages... |
vdo_get_journal_block_sector(9) | NAME vdo_get_journal_block_sector - Find the recovery journal sector from the block header and sector number.
SYNOPSIS struct packed_journal_sector * vdo_get_journal_block_sector (struct packed_journal_header *header , int sector_number );
ARGUMENTS header The header of the recovery journal block.
sector... |
vdo_get_journal_operation_name(9) | NAME vdo_get_journal_operation_name - Get the name of a journal operation.
SYNOPSIS const char * vdo_get_journal_operation_name (enum journal_operation operation );
ARGUMENTS operation The operation to name.
RETURN The name of the operation.
SEE ALSO Kernel file ./drivers/md/dm-vdo/encodings.c validate_version(... |
vdo_get_known_partition(9) | NAME vdo_get_known_partition - Get a partition by id from a validated layout.
SYNOPSIS struct partition * vdo_get_known_partition (struct layout *layout , enum partition_id id );
ARGUMENTS layout The layout from which to get a partition.
id The id of the partition.
RETURN the partition
SEE ALS... |
vdo_get_packer_statistics(9) | NAME vdo_get_packer_statistics - Get the current statistics from the packer.
SYNOPSIS struct packer_statistics vdo_get_packer_statistics (const struct packer *packer );
ARGUMENTS packer The packer to query.
RETURN a copy of the current statistics for the packer.
SEE ALSO Kernel file ./drivers/md/dm-vdo/packe... |
vdo_get_page(9) | NAME vdo_get_page - Initialize a page completion and get a block map page.
SYNOPSIS void vdo_get_page (struct vdo_page_completion *page_completion , struct block_map_zone *zone , physical_block_number_t pbn , bool writable , void *parent , vdo_action_fn callback , vdo_action_fn error_handler , bool re‐ queue );
ARG... |
vdo_get_partition(9) | NAME vdo_get_partition - Get a partition by id.
SYNOPSIS int vdo_get_partition (struct layout *layout , enum partition_id id , struct partition **partition_ptr );
ARGUMENTS layout The layout from which to get a partition.
id The id of the partition.
partition_ptr
A poi... |
vdo_get_physical_blocks_allocated(9) | NAME vdo_get_physical_blocks_allocated - Get the number of physical blocks in use by user data.
SYNOPSIS block_count_t vdo_get_physical_blocks_allocated (const struct vdo *vdo );
ARGUMENTS vdo The vdo.
RETURN The number of blocks allocated for user data.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Ke... |
vdo_get_physical_blocks_overhead(9) | NAME vdo_get_physical_blocks_overhead - Get the number of physical blocks used by vdo metadata.
SYNOPSIS block_count_t vdo_get_physical_blocks_overhead (const struct vdo *vdo );
ARGUMENTS vdo The vdo.
RETURN The number of overhead blocks.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), v... |
vdo_get_physical_zone(9) | NAME vdo_get_physical_zone - Get the physical zone responsible for a given physical block number.
SYNOPSIS int vdo_get_physical_zone (const struct vdo *vdo , physical_block_number_t pbn , struct physical_zone **zone_ptr );
ARGUMENTS vdo The vdo containing the physical zones.
pbn The PBN of the... |
vdo_get_physical_zone_pbn_lock(9) | NAME vdo_get_physical_zone_pbn_lock - Get the lock on a PBN if one exists.
SYNOPSIS struct pbn_lock * vdo_get_physical_zone_pbn_lock (struct physical_zone *zone , physical_block_number_t pbn );
ARGUMENTS zone The physical zone responsible for the PBN.
pbn The physical block number whose lock is... |
vdo_get_recovery_journal_block_number(9) | NAME vdo_get_recovery_journal_block_number - Get the physical block number for a given sequence number.
SYNOPSIS physical_block_number_t vdo_get_recovery_journal_block_number (const struct recovery_journal *journal , sequence_number_t sequence );
ARGUMENTS journal The journal.
sequence The sequence num... |
vdo_get_recovery_journal_current_sequence_number(9) | NAME vdo_get_recovery_journal_current_sequence_number - Obtain the recovery journal's current sequence number.
SYNOPSIS sequence_number_t vdo_get_recovery_journal_current_sequence_number (struct recovery_journal *journal );
ARGUMENTS journal The journal in question.
DESCRIPTION Exposed only so the block map can ... |
vdo_get_recovery_journal_length(9) | NAME vdo_get_recovery_journal_length - Get the number of usable recovery journal blocks.
SYNOPSIS block_count_t vdo_get_recovery_journal_length (block_count_t journal_size );
ARGUMENTS journal_size The size of the recovery journal in blocks.
RETURN The number of recovery journal blocks usable for entries.
SEE ALSO ... |
vdo_get_recovery_journal_logical_blocks_used(9) | NAME vdo_get_recovery_journal_logical_blocks_used - Get the number of logical blocks in use by the VDO.
SYNOPSIS block_count_t vdo_get_recovery_journal_logical_blocks_used (const struct recovery_journal *journal );
ARGUMENTS journal The journal.
RETURN The number of logical blocks in use by the VDO.
SEE ALSO Ke... |
vdo_get_recovery_journal_statistics(9) | NAME vdo_get_recovery_journal_statistics - Get the current statistics from the recovery journal.
SYNOPSIS struct recovery_journal_statistics vdo_get_recovery_journal_statistics (const struct recovery_journal *journal );
ARGUMENTS journal The recovery journal to query.
RETURN A copy of the current statistics for ... |
vdo_get_recovery_journal_thread_id(9) | NAME vdo_get_recovery_journal_thread_id - Get the ID of a recovery journal's thread.
SYNOPSIS thread_id_t vdo_get_recovery_journal_thread_id (struct recovery_journal *journal );
ARGUMENTS journal The journal to query.
RETURN The ID of the journal's thread.
SEE ALSO Kernel file ./drivers/md/dm-vdo/recovery-jou... |
vdo_get_saved_reference_count_size(9) | NAME vdo_get_saved_reference_count_size - Get the number of blocks required to save a reference counts state covering the specified number of data blocks.
SYNOPSIS block_count_t vdo_get_saved_reference_count_size (block_count_t block_count );
ARGUMENTS block_count The number of physical data blocks that can be refere... |
vdo_get_slab(9) | NAME vdo_get_slab - Get the slab object for the slab that contains a specified block.
SYNOPSIS struct vdo_slab * vdo_get_slab (const struct slab_depot *depot , physical_block_number_t pbn );
ARGUMENTS depot The slab depot.
pbn The physical block number.
DESCRIPTION Will put the VDO in read-only... |
vdo_get_slab_depot_allocated_blocks(9) | NAME vdo_get_slab_depot_allocated_blocks - Get the total number of data blocks allocated across all the slabs in the depot.
SYNOPSIS block_count_t vdo_get_slab_depot_allocated_blocks (const struct slab_depot *depot );
ARGUMENTS depot The slab depot.
DESCRIPTION This is the total number of blocks with a non-zer... |
vdo_get_slab_depot_data_blocks(9) | NAME vdo_get_slab_depot_data_blocks - Get the total number of data blocks in all the slabs in the depot.
SYNOPSIS block_count_t vdo_get_slab_depot_data_blocks (const struct slab_depot *depot );
ARGUMENTS depot The slab depot.
CONTEXT This may be called from any thread.
RETURN The total number of data blocks i... |
vdo_get_slab_depot_statistics(9) | NAME vdo_get_slab_depot_statistics - Get all the vdo_statistics fields that are properties of the slab depot.
SYNOPSIS void vdo_get_slab_depot_statistics (const struct slab_depot *depot , struct vdo_statistics *stats );
ARGUMENTS depot The slab depot.
stats The vdo statistics structure to partiall... |
vdo_get_slab_journal_start_block(9) | NAME vdo_get_slab_journal_start_block - Get the physical block number of the start of the slab journal relative to the start block allocator partition.
SYNOPSIS physical_block_number_t vdo_get_slab_journal_start_block (const struct slab_config *slab_config , physical_block_number_t origin );
ARGUMENTS slab_config The... |
vdo_get_slab_summary_hint_shift(9) | NAME vdo_get_slab_summary_hint_shift - Compute the shift for slab summary hints.
SYNOPSIS u8 vdo_get_slab_summary_hint_shift (unsigned int slab_size_shift );
ARGUMENTS slab_size_shift Exponent for the number of blocks per slab.
RETURN The hint shift.
SEE ALSO Kernel file ./drivers/md/dm-vdo/encodings.h Kernel A... |
vdo_get_state(9) | NAME vdo_get_state - Get the current state of the vdo.
SYNOPSIS enum vdo_state vdo_get_state (const struct vdo *vdo );
ARGUMENTS vdo The vdo.
CONTEXT This method may be called from any thread.
RETURN The current state of the vdo.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initi... |
vdo_get_work_queue_private_data(9) | NAME vdo_get_work_queue_private_data - Returns the private data for the current thread's work queue, or NULL if none or if the current thread is not a work queue thread.
SYNOPSIS void * vdo_get_work_queue_private_data (void );
ARGUMENTS void no arguments
SEE ALSO Kernel file ./drivers/md/dm-vdo/funnel-workque... |
vdo_in_read_only_mode(9) | NAME vdo_in_read_only_mode - Check whether a vdo is in read-only mode.
SYNOPSIS bool vdo_in_read_only_mode (const struct vdo *vdo );
ARGUMENTS vdo The vdo to query.
RETURN True if the vdo is in read-only mode.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initialize_device_registry... |
vdo_in_recovery_mode(9) | NAME vdo_in_recovery_mode - Check whether the vdo is in recovery mode.
SYNOPSIS bool vdo_in_recovery_mode (const struct vdo *vdo );
ARGUMENTS vdo The vdo to query.
RETURN True if the vdo is in recovery mode.
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), vdo_initialize_device_registry_o... |
vdo_increment_logical_zone_flush_generation(9) | NAME vdo_increment_logical_zone_flush_generation - Increment the flush generation in a logical zone.
SYNOPSIS void vdo_increment_logical_zone_flush_generation (struct logical_zone *zone , sequence_number_t expected_generation );
ARGUMENTS zone The logical zone.
expected_generation
Th... |
vdo_increment_packer_flush_generation(9) | NAME vdo_increment_packer_flush_generation - Increment the flush generation in the packer.
SYNOPSIS void vdo_increment_packer_flush_generation (struct packer *packer );
ARGUMENTS packer The packer.
DESCRIPTION This will also cause the packer to flush so that any VIOs from previous generations will exit the pack... |
vdo_initialize_device_registry_once(9) | NAME vdo_initialize_device_registry_once - Initialize the necessary structures for the device registry.
SYNOPSIS void vdo_initialize_device_registry_once (void );
ARGUMENTS void no arguments
SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo.c Kernel API(9), filter_vdos_locked(9), vdo_find_matching(9), initi... |
vdo_initialize_layout(9) | NAME vdo_initialize_layout - Lay out the partitions of a vdo.
SYNOPSIS int vdo_initialize_layout (block_count_t size , physical_block_number_t offset , block_count_t block_map_blocks , block_count_t journal_blocks , block_count_t summary_blocks , struct layout *layout );
ARGUMENTS size The entire size of the v... |
vdo_initialize_recovery_journal_post_repair(9) | NAME vdo_initialize_recovery_journal_post_repair - Initialize the journal after a repair.
SYNOPSIS void vdo_initialize_recovery_journal_post_repair (struct recovery_journal *journal , u64 recovery_count , sequence_number_t tail , block_count_t logical_blocks_used , block_count_t block_map_data_blocks );
ARGUMENTS jou... |
vdo_int_map_create(9) | NAME vdo_int_map_create - Allocate and initialize an int_map.
SYNOPSIS int vdo_int_map_create (size_t initial_capacity , struct int_map **map_ptr );
ARGUMENTS initial_capacity The number of entries the map should initially be capable of holding (zero tells the map to use its own small default).
map_ptr Ou... |
vdo_int_map_free(9) | NAME vdo_int_map_free - Free an int_map.
SYNOPSIS void vdo_int_map_free (struct int_map *map );
ARGUMENTS map The int_map to free.
NOTE The map does not own the pointer values stored in the map and they are not freed by this call.
SEE ALSO Kernel file ./drivers/md/dm-vdo/int-map.c Kernel API(9), str... |
vdo_int_map_get(9) | NAME vdo_int_map_get - Retrieve the value associated with a given key from the int_map.
SYNOPSIS void * vdo_int_map_get (struct int_map *map , u64 key );
ARGUMENTS map The int_map to query.
key The key to look up.
RETURN The value associated with the given key, or NULL if the key is not mappe... |
vdo_int_map_put(9) | NAME vdo_int_map_put - Try to associate a value with an integer.
SYNOPSIS int vdo_int_map_put (struct int_map *map , u64 key , void *new_value , bool update , void **old_value_ptr );
ARGUMENTS map The int_map to attempt to modify.
key The key with which to associate the new value.
new_... |
vdo_int_map_remove(9) | NAME vdo_int_map_remove - Remove the mapping for a given key from the int_map.
SYNOPSIS void * vdo_int_map_remove (struct int_map *map , u64 key );
ARGUMENTS map The int_map from which to remove the mapping.
key The key whose mapping is to be removed.
RETURN the value that was associated with... |
vdo_int_map_size(9) | NAME vdo_int_map_size - Get the number of entries stored in an int_map.
SYNOPSIS size_t vdo_int_map_size (const struct int_map *map );
ARGUMENTS map The int_map to query.
RETURN The number of entries in the map.
SEE ALSO Kernel file ./drivers/md/dm-vdo/int-map.c Kernel API(9), struct bucket(9), st... |
vdo_invalidate_page_cache(9) | NAME vdo_invalidate_page_cache - Invalidate all entries in the VDO page cache.
SYNOPSIS int vdo_invalidate_page_cache (struct vdo_page_cache *cache );
ARGUMENTS cache The page cache.
DESCRIPTION There must not be any dirty pages in the cache.
RETURN A success or error code.
SEE ALSO Kernel file ./drivers/m... |
vdo_is_pbn_read_lock(9) | NAME vdo_is_pbn_read_lock - Check whether a pbn_lock is a read lock.
SYNOPSIS bool vdo_is_pbn_read_lock (const struct pbn_lock *lock );
ARGUMENTS lock The lock to check.
RETURN True if the lock is a read lock.
SEE ALSO Kernel file ./drivers/md/dm-vdo/physical-zone.c vdo_downgrade_pbn_write_lock(9), vd... |
vdo_is_physical_data_block(9) | NAME vdo_is_physical_data_block - Determine whether the given PBN refers to a data block.
SYNOPSIS bool vdo_is_physical_data_block (const struct slab_depot *depot , physical_block_number_t pbn );
ARGUMENTS depot The depot.
pbn The physical block number to ask about.
RETURN True if the PBN corre... |
vdo_is_priority_table_empty(9) | NAME vdo_is_priority_table_empty - Return whether the priority table is empty.
SYNOPSIS bool vdo_is_priority_table_empty (struct priority_table *table );
ARGUMENTS table The table to check.
RETURN true if the table is empty.
SEE ALSO Kernel file ./drivers/md/dm-vdo/priority-table.c vdo_make_priority_table(... |
vdo_is_read_only(9) | NAME vdo_is_read_only - Check whether the VDO is read-only.
SYNOPSIS bool vdo_is_read_only (struct vdo *vdo );
ARGUMENTS vdo The vdo.
RETURN True if the vdo is read-only.
DESCRIPTION This method may be called from any thread, as opposed to examining the VDO's state field which is only safe to check from the... |
vdo_is_valid_recovery_journal_sector(9) | NAME vdo_is_valid_recovery_journal_sector - Determine whether the header of the given sector could describe a valid sector for the given journal block header.
SYNOPSIS bool vdo_is_valid_recovery_journal_sector (const struct recovery_block_header *header , const struct packed_journal_sector *sector , u8 sector_number )... |
vdo_launch_bio(9) | NAME vdo_launch_bio - Acquire a data_vio from the pool, assign the bio to it, and launch it.
SYNOPSIS void vdo_launch_bio (struct data_vio_pool *pool , struct bio *bio );
ARGUMENTS pool The data_vio pool.
bio The bio to launch.
DESCRIPTION This will block if data_vios or discard permits are no... |
vdo_launch_completion(9) | NAME vdo_launch_completion - Launch a completion with default priority.
SYNOPSIS void vdo_launch_completion (struct vdo_completion *completion );
ARGUMENTS completion -- undescribed --
SEE ALSO Kernel file ./drivers/md/dm-vdo/completion.h vdo_run_completion(9), vdo_reset_completion(9), vdo_continue_completion(9),... |
vdo_launch_completion_callback(9) | NAME vdo_launch_completion_callback - Set the callback for a completion and launch it immediately.
SYNOPSIS void vdo_launch_completion_callback (struct vdo_completion *completion , vdo_action_fn callback , thread_id_t callback_thread_id );
ARGUMENTS completion -- undescribed --
callback -- undescribed --
... |
vdo_launch_completion_with_priority(9) | NAME vdo_launch_completion_with_priority - Run or enqueue a completion.
SYNOPSIS void vdo_launch_completion_with_priority (struct vdo_completion *completion , enum vdo_completion_priority priority );
ARGUMENTS completion The completion to launch.
priority The priority at which to enqueue the completion.
... |
vdo_launch_flush(9) | NAME vdo_launch_flush - Function called to start processing a flush request.
SYNOPSIS void vdo_launch_flush (struct vdo *vdo , struct bio *bio );
ARGUMENTS vdo The vdo.
bio The bio containing an empty flush request.
DESCRIPTION This is called when we receive an empty flush bio from the block ... |
vdo_load_slab_depot(9) | NAME vdo_load_slab_depot - Asynchronously load any slab depot state that isn't included in the super_block component.
SYNOPSIS void vdo_load_slab_depot (struct slab_depot *depot , const struct admin_state_code *operation , struct vdo_completion *parent , void *context );
ARGUMENTS depot The depot to load.
... |
vdo_load_super_block(9) | NAME vdo_load_super_block - Allocate a super block and read its contents from storage.
SYNOPSIS void vdo_load_super_block (struct vdo *vdo , struct vdo_completion *parent );
ARGUMENTS vdo The vdo containing the super block on disk.
parent The completion to notify after loading the super block.
S... |
vdo_make(9) | NAME vdo_make - Allocate and initialize a vdo.
SYNOPSIS int vdo_make (unsigned int instance , struct device_config *config , char **reason , struct vdo **vdo_ptr );
ARGUMENTS instance Device instantiation counter.
config The device configuration.
reason The reason for any failure during t... |
vdo_make_action_manager(9) | NAME vdo_make_action_manager - Make an action manager.
SYNOPSIS int vdo_make_action_manager (zone_count_t zones , vdo_zone_thread_getter_fn get_zone_thread_id , thread_id_t initiator_thread_id , void *context , vdo_action_scheduler_fn scheduler , struct vdo *vdo , struct action_man‐ ager **manager_ptr );
ARGUMENTS ... |
vdo_make_flusher(9) | NAME vdo_make_flusher - Make a flusher for a vdo.
SYNOPSIS int vdo_make_flusher (struct vdo *vdo );
ARGUMENTS vdo The vdo which owns the flusher.
RETURN VDO_SUCCESS or an error.
SEE ALSO Kernel file ./drivers/md/dm-vdo/flush.c assert_on_flusher_thread(9), as_flusher(9), completion_as_vdo_flush(9), v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.