id
stringlengths
4
63
text
stringlengths
153
8.81M
vdo_make_hash_zones(9)
NAME vdo_make_hash_zones - Create the hash zones. SYNOPSIS int vdo_make_hash_zones (struct vdo *vdo , struct hash_zones **zones_ptr ); ARGUMENTS vdo The vdo to which the zone will belong. zones_ptr A pointer to hold the zones. RETURN VDO_SUCCESS or an error code. SEE ALSO Kernel file ./drivers/m...
vdo_make_io_submitter(9)
NAME vdo_make_io_submitter - Create an io_submitter structure. SYNOPSIS int vdo_make_io_submitter (unsigned int thread_count , unsigned int rotation_interval , unsigned int max_requests_active , struct vdo *vdo , struct io_submitter **io_submitter_ptr ); ARGUMENTS thread_count Number of bio-submission threads to set ...
vdo_make_logical_zones(9)
NAME vdo_make_logical_zones - Create a set of logical zones. SYNOPSIS int vdo_make_logical_zones (struct vdo *vdo , struct logical_zones **zones_ptr ); ARGUMENTS vdo The vdo to which the zones will belong. zones_ptr A pointer to hold the new zones. RETURN VDO_SUCCESS or an error code. SEE ALSO Ker...
vdo_make_packer(9)
NAME vdo_make_packer - Make a new block packer. SYNOPSIS int vdo_make_packer (struct vdo *vdo , block_count_t bin_count , struct packer **packer_ptr ); ARGUMENTS vdo The vdo to which this packer belongs. bin_count The number of partial bins to keep in memory. packer_ptr A pointer to hold th...
vdo_make_physical_zones(9)
NAME vdo_make_physical_zones - Make the physical zones for a vdo. SYNOPSIS int vdo_make_physical_zones (struct vdo *vdo , struct physical_zones **zones_ptr ); ARGUMENTS vdo The vdo being constructed zones_ptr A pointer to hold the zones RETURN VDO_SUCCESS or an error code. SEE ALSO Kernel file ...
vdo_make_priority_table(9)
NAME vdo_make_priority_table - Allocate and initialize a new priority_table. SYNOPSIS int vdo_make_priority_table (unsigned int max_priority , struct priority_table **table_ptr ); ARGUMENTS max_priority The maximum priority value for table entries. table_ptr A pointer to hold the new table. RETURN VDO_SUCC...
vdo_make_thread(9)
NAME vdo_make_thread - Construct a single vdo work_queue and its associated thread (or threads for round-robin queues). SYNOPSIS int vdo_make_thread (struct vdo *vdo , thread_id_t thread_id , const struct vdo_work_queue_type *type , unsigned int queue_count , void *contexts[] ); ARGUMENTS vdo The vdo which ow...
vdo_make_work_queue(9)
NAME vdo_make_work_queue - Create a work queue; if multiple threads are requested, completions will be distributed to them in round-robin fashion. SYNOPSIS int vdo_make_work_queue (const char *thread_name_prefix , const char *name , struct vdo_thread *owner , const struct vdo_work_queue_type *type , unsigned int thre...
vdo_modify_reference_count(9)
NAME vdo_modify_reference_count - Modify the reference count of a block by first making a slab journal entry and then updating the reference counter. SYNOPSIS void vdo_modify_reference_count (struct vdo_completion *completion , struct reference_updater *updater ); ARGUMENTS completion The data_vio completion for whi...
vdo_notify_slab_journals_are_recovered(9)
NAME vdo_notify_slab_journals_are_recovered - Inform a block allocator that its slab journals have been recovered from the recovery journal. SYNOPSIS void vdo_notify_slab_journals_are_recovered (struct vdo_completion *completion ); ARGUMENTS completion The allocator completion. SEE ALSO Kernel file ./drivers/md/d...
vdo_open_recovery_journal(9)
NAME vdo_open_recovery_journal - Prepare the journal for new entries. SYNOPSIS void vdo_open_recovery_journal (struct recovery_journal *journal , struct slab_depot *depot , struct block_map *block_map ); ARGUMENTS journal The journal in question. depot The slab depot for this VDO. block_map ...
vdo_pack_header(9)
NAME vdo_pack_header - Convert a component header to its packed on-disk representation. SYNOPSIS struct packed_header vdo_pack_header (const struct header *header ); ARGUMENTS header The header to convert. RETURN the platform-independent representation of the header SEE ALSO Kernel file ./drivers/md/dm-vdo/e...
vdo_pack_journal_point(9)
NAME vdo_pack_journal_point - Encode the journal location represented by a journal_point into a packed_journal_point. SYNOPSIS void vdo_pack_journal_point (const struct journal_point *unpacked , struct packed_journal_point *packed ); ARGUMENTS unpacked The unpacked input point. packed The packed outpu...
vdo_pack_recovery_block_header(9)
NAME vdo_pack_recovery_block_header - Generate the packed representation of a recovery block header. SYNOPSIS void vdo_pack_recovery_block_header (const struct recovery_block_header *header , struct packed_journal_header *packed ); ARGUMENTS header The header containing the values to encode. packed ...
vdo_pack_recovery_journal_entry(9)
NAME vdo_pack_recovery_journal_entry - Return the packed, on-disk representation of a recovery journal entry. SYNOPSIS struct packed_recovery_journal_entry vdo_pack_recovery_journal_entry (const struct recovery_journal_entry *entry ); ARGUMENTS entry The journal entry to pack. RETURN The packed representation ...
vdo_pack_slab_journal_block_header(9)
NAME vdo_pack_slab_journal_block_header - Generate the packed representation of a slab block header. SYNOPSIS void vdo_pack_slab_journal_block_header (const struct slab_journal_block_header *header , struct packed_slab_journal_block_header *packed ); ARGUMENTS header The header containing the values to encode. ...
vdo_pack_slab_journal_entry(9)
NAME vdo_pack_slab_journal_entry - Generate the packed encoding of a slab journal entry. SYNOPSIS void vdo_pack_slab_journal_entry (packed_slab_journal_entry *packed , slab_block_number sbn , bool is_increment ); ARGUMENTS packed The entry into which to pack the values. sbn The slab block number ...
vdo_pack_version_number(9)
NAME vdo_pack_version_number - Convert a version_number to its packed on-disk representation. SYNOPSIS struct packed_version_number vdo_pack_version_number (struct version_number version ); ARGUMENTS version The version number to convert. RETURN the platform-independent representation of the version SEE ALSO Ke...
vdo_parse_geometry_block(9)
NAME vdo_parse_geometry_block - Decode and validate an encoded geometry block. SYNOPSIS int vdo_parse_geometry_block (u8 *block , struct volume_geometry *geometry ); ARGUMENTS block The encoded geometry block. geometry The structure to receive the decoded fields. SEE ALSO Kernel file ./drivers/m...
vdo_pbn_lock_has_provisional_reference(9)
NAME vdo_pbn_lock_has_provisional_reference - Check whether a PBN lock has a provisional reference. SYNOPSIS bool vdo_pbn_lock_has_provisional_reference (struct pbn_lock *lock ); ARGUMENTS lock The PBN lock. SEE ALSO Kernel file ./drivers/md/dm-vdo/physical-zone.h April 2026 ...
vdo_prepare_completion(9)
NAME vdo_prepare_completion - Prepare a completion for launch. SYNOPSIS void vdo_prepare_completion (struct vdo_completion *completion , vdo_action_fn callback , vdo_action_fn error_handler , thread_id_t callback_thread_id , void *parent ); ARGUMENTS completion -- undescribed -- callback -- undescribed --...
vdo_prepare_completion_for_requeue(9)
NAME vdo_prepare_completion_for_requeue - Prepare a completion for launch ensuring that it will always be requeued. SYNOPSIS void vdo_prepare_completion_for_requeue (struct vdo_completion *completion , vdo_action_fn callback , vdo_action_fn error_handler , thread_id_t callback_thread_id , void *parent ); ARGUMENTS co...
vdo_prepare_slab_depot_to_allocate(9)
NAME vdo_prepare_slab_depot_to_allocate - Prepare the slab depot to come online and start allocating blocks. SYNOPSIS void vdo_prepare_slab_depot_to_allocate (struct slab_depot *depot , enum slab_depot_load_type load_type , struct vdo_completion *parent ); ARGUMENTS depot The depot to prepare. load_type...
vdo_prepare_to_grow_slab_depot(9)
NAME vdo_prepare_to_grow_slab_depot - Allocate new memory needed for a resize of a slab depot to the given size. SYNOPSIS int vdo_prepare_to_grow_slab_depot (struct slab_depot *depot , const struct partition *partition ); ARGUMENTS depot The depot to prepare to resize. partition The new depot partitio...
vdo_priority_table_dequeue(9)
NAME vdo_priority_table_dequeue - Find the highest-priority entry in the table, remove it from the table, and return it. SYNOPSIS struct list_head * vdo_priority_table_dequeue (struct priority_table *table ); ARGUMENTS table The priority table from which to remove an entry. DESCRIPTION If there are multiple en...
vdo_priority_table_enqueue(9)
NAME vdo_priority_table_enqueue - Add a new entry to the priority table, appending it to the queue for entries with the specified priority. SYNOPSIS void vdo_priority_table_enqueue (struct priority_table *table , unsigned int priority , struct list_head *entry ); ARGUMENTS table The table in which to store the ...
vdo_priority_table_remove(9)
NAME vdo_priority_table_remove - Remove a specified entry from its priority table. SYNOPSIS void vdo_priority_table_remove (struct priority_table *table , struct list_head *entry ); ARGUMENTS table The table from which to remove the entry. entry The entry to remove from the table. SEE ALSO Kernel...
vdo_read_only_notification_fn(9)
NAME vdo_read_only_notification_fn - A function to notify a listener that the VDO has gone read-only. SYNOPSIS void vdo_read_only_notification_fn (void *listener , struct vdo_completion *parent ); ARGUMENTS listener The object to notify. parent The completion to notify in order to acknowledge the noti...
vdo_record_recovery_journal(9)
NAME vdo_record_recovery_journal - Record the state of a recovery journal for encoding in the super block. SYNOPSIS struct recovery_journal_state_7_0 vdo_record_recovery_journal (const struct recovery_journal *journal ); ARGUMENTS journal the recovery journal. RETURN the state of the journal. SEE ALSO Kernel f...
vdo_record_slab_depot(9)
NAME vdo_record_slab_depot - Record the state of a slab depot for encoding into the super block. SYNOPSIS struct slab_depot_state_2_0 vdo_record_slab_depot (const struct slab_depot *depot ); ARGUMENTS depot The depot to encode. RETURN The depot state. SEE ALSO Kernel file ./drivers/md/dm-vdo/slab-depot.c g...
vdo_register_read_only_listener(9)
NAME vdo_register_read_only_listener - Register a listener to be notified when the VDO goes read-only. SYNOPSIS int vdo_register_read_only_listener (struct vdo *vdo , void *listener , vdo_read_only_notification_fn notification , thread_id_t thread_id ); ARGUMENTS vdo The vdo to register with. listener...
vdo_register_status_codes(9)
NAME vdo_register_status_codes - Register the VDO status codes. SYNOPSIS int vdo_register_status_codes (void ); ARGUMENTS void no arguments RETURN A success or error code. SEE ALSO Kernel file ./drivers/md/dm-vdo/status-codes.c vdo_status_to_errno(9) April 2026 ...
vdo_release_flush_generation_lock(9)
NAME vdo_release_flush_generation_lock - Release the shared lock on a flush generation held by a write data_vio. SYNOPSIS void vdo_release_flush_generation_lock (struct data_vio *data_vio ); ARGUMENTS data_vio The data_vio whose lock is to be released. DESCRIPTION If there are pending flushes, and this data_vio c...
vdo_release_hash_lock(9)
NAME vdo_release_hash_lock - Release a data_vio's share of a hash lock, if held, and null out the data_vio's reference to it. SYNOPSIS void vdo_release_hash_lock (struct data_vio *data_vio ); ARGUMENTS data_vio The data_vio releasing its hash lock. DESCRIPTION If the data_vio is the only one holding the lock, ...
vdo_release_journal_entry_lock(9)
NAME vdo_release_journal_entry_lock - Release a single per-entry reference count for a recovery journal block. SYNOPSIS void vdo_release_journal_entry_lock (struct recovery_journal *journal , sequence_number_t sequence_number ); ARGUMENTS journal The recovery journal. sequence_number Th...
vdo_release_page_completion(9)
NAME vdo_release_page_completion - Release a VDO Page Completion. SYNOPSIS void vdo_release_page_completion (struct vdo_completion *completion ); ARGUMENTS completion The page completion to release. DESCRIPTION The page referenced by this completion (if any) will no longer be held busy by this completion. If a pag...
vdo_release_physical_zone_pbn_lock(9)
NAME vdo_release_physical_zone_pbn_lock - Release a physical block lock if it is held and return it to the lock pool. SYNOPSIS void vdo_release_physical_zone_pbn_lock (struct physical_zone *zone , physical_block_number_t locked_pbn , struct pbn_lock *lock ); ARGUMENTS zone The physical zone in which the lock w...
vdo_release_recovery_journal_block_reference(9)
NAME vdo_release_recovery_journal_block_reference - Release a reference to a recovery journal block. SYNOPSIS void vdo_release_recovery_journal_block_reference (struct recovery_journal *journal , sequence_number_t sequence_number , enum vdo_zone_type zone_type , zone_count_t zone_id ); ARGUMENTS journal The recov...
vdo_remove_lock_holder_from_packer(9)
NAME vdo_remove_lock_holder_from_packer - Remove a lock holder from the packer. SYNOPSIS void vdo_remove_lock_holder_from_packer (struct vdo_completion *completion ); ARGUMENTS completion The data_vio which needs a lock held by a data_vio in the packer. The data_vio's compression.lock_holder field will point to the ...
vdo_repair(9)
NAME vdo_repair - Load the recovery journal and then recover or rebuild a vdo. SYNOPSIS void vdo_repair (struct vdo_completion *parent ); ARGUMENTS parent The completion to notify when the operation is complete SEE ALSO Kernel file ./drivers/md/dm-vdo/repair.c as_repair_completion(9), abort_repair(9), abort_...
vdo_replay_into_slab_journals(9)
NAME vdo_replay_into_slab_journals - Replay recovery journal entries in the slab journals of slabs owned by a given block_allocator. SYNOPSIS void vdo_replay_into_slab_journals (struct block_allocator *allocator , void *context ); ARGUMENTS allocator The allocator whose slab journals are to be recovered. co...
vdo_request_page_write(9)
NAME vdo_request_page_write - Request that a VDO page be written out as soon as it is not busy. SYNOPSIS void vdo_request_page_write (struct vdo_completion *completion ); ARGUMENTS completion The vdo_page_completion containing the page. SEE ALSO Kernel file ./drivers/md/dm-vdo/block-map.c Kernel API(9), initia...
vdo_requeue_completion_if_needed(9)
NAME vdo_requeue_completion_if_needed - Requeue a completion if not called on the specified thread. SYNOPSIS bool vdo_requeue_completion_if_needed (struct vdo_completion *completion , thread_id_t callback_thread_id ); ARGUMENTS completion The completion to requeue. callback_thread_id The t...
vdo_reset_completion(9)
NAME vdo_reset_completion - Reset a completion to a clean state, while keeping the type, vdo and parent information. SYNOPSIS void vdo_reset_completion (struct vdo_completion *completion ); ARGUMENTS completion -- undescribed -- SEE ALSO Kernel file ./drivers/md/dm-vdo/completion.h vdo_run_completion(9), vdo_launc...
vdo_reset_priority_table(9)
NAME vdo_reset_priority_table - Reset a priority table, leaving it in the same empty state as when newly constructed. SYNOPSIS void vdo_reset_priority_table (struct priority_table *table ); ARGUMENTS table The table to reset. DESCRIPTION The table does not own the entries stored in it and they are not freed (o...
vdo_resume_flusher(9)
NAME vdo_resume_flusher - Resume a flusher which has been suspended. SYNOPSIS void vdo_resume_flusher (struct flusher *flusher , struct vdo_completion *parent ); ARGUMENTS flusher The flusher to resume. parent The completion to finish when the flusher has resumed. SEE ALSO Kernel file ./drivers/md/...
vdo_resume_hash_zones(9)
NAME vdo_resume_hash_zones - Resume a set of hash zones. SYNOPSIS void vdo_resume_hash_zones (struct hash_zones *zones , struct vdo_completion *parent ); ARGUMENTS zones The hash zones to resume. parent The object to notify when the zones have resumed. SEE ALSO Kernel file ./drivers/md/dm-vdo/de...
vdo_resume_if_quiescent(9)
NAME vdo_resume_if_quiescent - Change the state to normal operation if the current state is quiescent. SYNOPSIS int vdo_resume_if_quiescent (struct admin_state *state ); ARGUMENTS state The current admin state. RETURN VDO_SUCCESS if the state resumed, VDO_INVALID_ADMIN_STATE otherwise. SEE ALSO Kernel file ...
vdo_resume_logical_zones(9)
NAME vdo_resume_logical_zones - Resume a set of logical zones. SYNOPSIS void vdo_resume_logical_zones (struct logical_zones *zones , struct vdo_completion *parent ); ARGUMENTS zones The logical zones to resume. parent The object to notify when the zones have resumed. SEE ALSO Kernel file ./drive...
vdo_resume_packer(9)
NAME vdo_resume_packer - Resume a packer which has been suspended. SYNOPSIS void vdo_resume_packer (struct packer *packer , struct vdo_completion *parent ); ARGUMENTS packer The packer to resume. parent The completion to finish when the packer has resumed. SEE ALSO Kernel file ./drivers/md/dm-vdo...
vdo_resume_recovery_journal(9)
NAME vdo_resume_recovery_journal - Resume a recovery journal which has been drained. SYNOPSIS void vdo_resume_recovery_journal (struct recovery_journal *journal , struct vdo_completion *parent ); ARGUMENTS journal The journal to resume. parent The completion to finish once the journal is resumed. SE...
vdo_resume_slab_depot(9)
NAME vdo_resume_slab_depot - Resume a suspended slab depot. SYNOPSIS void vdo_resume_slab_depot (struct slab_depot *depot , struct vdo_completion *parent ); ARGUMENTS depot The depot to resume. parent The completion to finish when the depot has resumed. SEE ALSO Kernel file ./drivers/md/dm-vdo/s...
vdo_run_completion(9)
NAME vdo_run_completion - Run a completion's callback or error handler on the current thread. SYNOPSIS void vdo_run_completion (struct vdo_completion *completion ); ARGUMENTS completion -- undescribed -- CONTEXT This function must be called from the correct callback thread. SEE ALSO Kernel file ./drivers/md/dm-v...
vdo_save_components(9)
NAME vdo_save_components - Encode the vdo and save the super block asynchronously. SYNOPSIS void vdo_save_components (struct vdo *vdo , struct vdo_completion *parent ); ARGUMENTS vdo The vdo whose state is being saved. parent The completion to notify when the save is complete. SEE ALSO Kernel ...
vdo_schedule_action(9)
NAME vdo_schedule_action - Schedule an action to be applied to all zones. SYNOPSIS bool vdo_schedule_action (struct action_manager *manager , vdo_action_preamble_fn preamble , vdo_zone_action_fn action , vdo_action_conclusion_fn conclusion , struct vdo_completion *parent ); ARGUMENTS manager The action manager to...
vdo_schedule_default_action(9)
NAME vdo_schedule_default_action - Attempt to schedule the default action. SYNOPSIS bool vdo_schedule_default_action (struct action_manager *manager ); ARGUMENTS manager The action manager. DESCRIPTION If the manager is not operating normally, the action will not be scheduled. RETURN true if an action was sched...
vdo_schedule_operation(9)
NAME vdo_schedule_operation - Schedule an operation to be applied to all zones. SYNOPSIS bool vdo_schedule_operation (struct action_manager *manager , const struct admin_state_code *operation , vdo_action_preamble_fn preamble , vdo_zone_action_fn action , vdo_action_conclusion_fn conclusion , struct vdo_com‐ pletion ...
vdo_schedule_operation_with_context(9)
NAME vdo_schedule_operation_with_context - Schedule an operation on all zones. SYNOPSIS bool vdo_schedule_operation_with_context (struct action_manager *manager , const struct admin_state_code *operation , vdo_action_preamble_fn preamble , vdo_zone_action_fn action , vdo_action_conclusion_fn conclusion , void *con...
vdo_scrub_all_unrecovered_slabs(9)
NAME vdo_scrub_all_unrecovered_slabs - Scrub all unrecovered slabs. SYNOPSIS void vdo_scrub_all_unrecovered_slabs (struct slab_depot *depot , struct vdo_completion *parent ); ARGUMENTS depot The depot to scrub. parent The object to notify when scrubbing has been launched for all zones. SEE ALSO Ke...
vdo_select_hash_zone(9)
NAME vdo_select_hash_zone - Select the hash zone responsible for locking a given record name. SYNOPSIS struct hash_zone * vdo_select_hash_zone (struct hash_zones *zones , const struct uds_record_name *name ); ARGUMENTS zones The hash_zones from which to select. name The record name. RETURN The h...
vdo_set_admin_state_code(9)
NAME vdo_set_admin_state_code - Set the current admin state code. SYNOPSIS void vdo_set_admin_state_code (struct admin_state *state , const struct admin_state_code *code ); ARGUMENTS state -- undescribed -- code -- undescribed -- DESCRIPTION This function should be used primarily for initializat...
vdo_set_completion_result(9)
NAME vdo_set_completion_result - Set the result of a completion. SYNOPSIS void vdo_set_completion_result (struct vdo_completion *completion , int result ); ARGUMENTS completion The completion to update. result The result to set. DESCRIPTION Older errors will not be masked. SEE ALSO Kernel file ./drive...
vdo_set_compressing(9)
NAME vdo_set_compressing - Turn compression on or off. SYNOPSIS bool vdo_set_compressing (struct vdo *vdo , bool enable ); ARGUMENTS vdo The vdo. enable Whether to enable or disable compression. RETURN Whether compression was previously on or off. SEE ALSO Kernel file ./drivers/md/dm-vdo/vdo...
vdo_set_state(9)
NAME vdo_set_state - Set the current state of the vdo. SYNOPSIS void vdo_set_state (struct vdo *vdo , enum vdo_state state ); ARGUMENTS vdo The vdo whose state is to be set. state The new state of the vdo. CONTEXT This method may be called from any thread. SEE ALSO Kernel file ./drivers/md/...
vdo_share_compressed_write_lock(9)
NAME vdo_share_compressed_write_lock - Make a data_vio's hash lock a shared holder of the PBN lock on the compressed block to which its data was just written. SYNOPSIS void vdo_share_compressed_write_lock (struct data_vio *data_vio , struct pbn_lock *pbn_lock ); ARGUMENTS data_vio The data_vio which was just compr...
vdo_start_draining(9)
NAME vdo_start_draining - Initiate a drain operation if the current state permits it. SYNOPSIS bool vdo_start_draining (struct admin_state *state , const struct admin_state_code *operation , struct vdo_completion *waiter , vdo_admin_initiator_fn initiator ); ARGUMENTS state The current admin state. oper...
vdo_start_loading(9)
NAME vdo_start_loading - Initiate a load operation if the current state permits it. SYNOPSIS bool vdo_start_loading (struct admin_state *state , const struct admin_state_code *operation , struct vdo_completion *waiter , vdo_admin_initiator_fn initiator ); ARGUMENTS state The current admin state. operati...
vdo_start_operation(9)
NAME vdo_start_operation - Attempt to start an operation. SYNOPSIS int vdo_start_operation (struct admin_state *state , const struct admin_state_code *operation ); ARGUMENTS state The current admin state. operation The operation to attempt to start. RETURN VDO_SUCCESS if the operation was started, VD...
vdo_start_operation_with_waiter(9)
NAME vdo_start_operation_with_waiter - Attempt to start an operation. SYNOPSIS int vdo_start_operation_with_waiter (struct admin_state *state , const struct admin_state_code *operation , struct vdo_completion *waiter , vdo_admin_initiator_fn initiator ); ARGUMENTS state The current admin state. operatio...
vdo_start_resuming(9)
NAME vdo_start_resuming - Initiate a resume operation if the current state permits it. SYNOPSIS bool vdo_start_resuming (struct admin_state *state , const struct admin_state_code *operation , struct vdo_completion *waiter , vdo_admin_initiator_fn initiator ); ARGUMENTS state The current admin state. ope...
vdo_state_requires_read_only_rebuild(9)
NAME vdo_state_requires_read_only_rebuild - Check whether a vdo_state indicates that a read-only rebuild is required. SYNOPSIS bool vdo_state_requires_read_only_rebuild (enum vdo_state state ); ARGUMENTS state The vdo_state to check. RETURN true if the state indicates a rebuild is required SEE ALSO Kernel fil...
vdo_state_requires_recovery(9)
NAME vdo_state_requires_recovery - Check whether a vdo state indicates that recovery is needed. SYNOPSIS bool vdo_state_requires_recovery (enum vdo_state state ); ARGUMENTS state The state to check. RETURN true if the state indicates a recovery is required SEE ALSO Kernel file ./drivers/md/dm-vdo/types.h vdo_...
vdo_status_to_errno(9)
NAME vdo_status_to_errno - Given an error code, return a value we can return to the OS. SYNOPSIS int vdo_status_to_errno (int error ); ARGUMENTS error The error code to convert. DESCRIPTION The input error code may be a system-generated value (such as -EIO), an errno macro used in our code (such as EIO), or a...
vdo_submit_data_vio(9)
NAME vdo_submit_data_vio - Submit I/O for a data_vio. SYNOPSIS void vdo_submit_data_vio (struct data_vio *data_vio ); ARGUMENTS data_vio The data_vio for which to issue I/O. DESCRIPTION If possible, this I/O will be merged other pending I/Os. Otherwise, the data_vio will be sent to the appropriate bio zone direct...
vdo_submit_vio(9)
NAME vdo_submit_vio - Submits a vio's bio to the underlying block device. May block if the device is busy. This callback should be used by vios which did not attempt to merge. SYNOPSIS void vdo_submit_vio (struct vdo_completion *completion ); ARGUMENTS completion The vio to submit. SEE ALSO Kernel file ./drivers/...
vdo_synchronous_flush(9)
NAME vdo_synchronous_flush - Issue a flush request and wait for it to complete. SYNOPSIS int vdo_synchronous_flush (struct vdo *vdo ); ARGUMENTS vdo The vdo. 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), filter_vd...
vdo_traverse_forest(9)
NAME vdo_traverse_forest - Walk the entire forest of a block map. SYNOPSIS void vdo_traverse_forest (struct block_map *map , vdo_entry_callback_fn callback , struct vdo_completion *completion ); ARGUMENTS map The block map. callback A function to call with the pbn of each allocated node in the fore...
vdo_unassign_pbn_lock_provisional_reference(9)
NAME vdo_unassign_pbn_lock_provisional_reference - Inform a PBN lock that it is no longer responsible for a provisional reference. SYNOPSIS void vdo_unassign_pbn_lock_provisional_reference (struct pbn_lock *lock ); ARGUMENTS lock The PBN lock. SEE ALSO Kernel file ./drivers/md/dm-vdo/physical-zone.c vdo_is_p...
vdo_uninitialize_layout(9)
NAME vdo_uninitialize_layout - Clean up a layout. SYNOPSIS void vdo_uninitialize_layout (struct layout *layout ); ARGUMENTS layout The layout to clean up. DESCRIPTION All partitions created by this layout become invalid pointers. SEE ALSO Kernel file ./drivers/md/dm-vdo/encodings.c validate_version(9), vdo_v...
vdo_unpack_header(9)
NAME vdo_unpack_header - Convert a packed_header to its native in-memory representation. SYNOPSIS struct header vdo_unpack_header (const struct packed_header *header ); ARGUMENTS header The header to convert. RETURN The platform-independent representation of the version. SEE ALSO Kernel file ./drivers/md/d...
vdo_unpack_journal_point(9)
NAME vdo_unpack_journal_point - Decode the journal location represented by a packed_journal_point into a journal_point. SYNOPSIS void vdo_unpack_journal_point (const struct packed_journal_point *packed , struct journal_point *unpacked ); ARGUMENTS packed The packed input point. unpacked The unpacked o...
vdo_unpack_recovery_block_header(9)
NAME vdo_unpack_recovery_block_header - Decode the packed representation of a recovery block header. SYNOPSIS struct recovery_block_header vdo_unpack_recovery_block_header (const struct packed_journal_header *packed ); ARGUMENTS packed The packed header to decode. RETURN The unpacked header. SEE ALSO Kernel f...
vdo_unpack_recovery_journal_entry(9)
NAME vdo_unpack_recovery_journal_entry - Unpack the on-disk representation of a recovery journal entry. SYNOPSIS struct recovery_journal_entry vdo_unpack_recovery_journal_entry (const struct packed_recovery_journal_entry *entry ); ARGUMENTS entry The recovery journal entry to unpack. RETURN The unpacked entry....
vdo_unpack_slab_journal_block_header(9)
NAME vdo_unpack_slab_journal_block_header - Decode the packed representation of a slab block header. SYNOPSIS void vdo_unpack_slab_journal_block_header (const struct packed_slab_journal_block_header *packed , struct slab_journal_block_header *header ); ARGUMENTS packed The packed header to decode. header...
vdo_unpack_slab_journal_entry(9)
NAME vdo_unpack_slab_journal_entry - Decode the packed representation of a slab journal entry. SYNOPSIS struct slab_journal_entry vdo_unpack_slab_journal_entry (const packed_slab_journal_entry *packed ); ARGUMENTS packed The packed entry to decode. RETURN The decoded slab journal entry. SEE ALSO Kernel file ...
vdo_unpack_version_number(9)
NAME vdo_unpack_version_number - Convert a packed_version_number to its native in-memory representation. SYNOPSIS struct version_number vdo_unpack_version_number (struct packed_version_number version ); ARGUMENTS version The version number to convert. RETURN The platform-independent representation of the version...
vdo_update_slab_depot_size(9)
NAME vdo_update_slab_depot_size - Update the slab depot to reflect its new size in memory. SYNOPSIS void vdo_update_slab_depot_size (struct slab_depot *depot ); ARGUMENTS depot The depot to update. DESCRIPTION This size is saved to disk as part of the super block. SEE ALSO Kernel file ./drivers/md/dm-vdo/sl...
vdo_use_new_slabs(9)
NAME vdo_use_new_slabs - Use the new slabs allocated for resize. SYNOPSIS void vdo_use_new_slabs (struct slab_depot *depot , struct vdo_completion *parent ); ARGUMENTS depot The depot. parent The object to notify when complete. SEE ALSO Kernel file ./drivers/md/dm-vdo/slab-depot.c get_lock(9), ...
vdo_uses_bio_ack_queue(9)
NAME vdo_uses_bio_ack_queue - Indicate whether the vdo is configured to use a separate work queue for acknowledging received and processed bios. SYNOPSIS bool vdo_uses_bio_ack_queue (struct vdo *vdo ); ARGUMENTS vdo The vdo. DESCRIPTION Note that this directly controls the handling of write operations, but t...
vdo_validate_component_states(9)
NAME vdo_validate_component_states - Validate the decoded super block configuration. SYNOPSIS int vdo_validate_component_states (struct vdo_component_states *states , nonce_t geometry_nonce , block_count_t physical_size , block_count_t logical_size ); ARGUMENTS states The state decoded from the super block. ...
vdo_validate_config(9)
NAME vdo_validate_config - Validate constraints on a VDO config. SYNOPSIS int vdo_validate_config (const struct vdo_config *config , block_count_t physical_block_count , block_count_t logical_block_count ); ARGUMENTS config The VDO config. physical_block_count The minimum block count o...
vdo_validate_header(9)
NAME vdo_validate_header - Check whether a header matches expectations. SYNOPSIS int vdo_validate_header (const struct header *expected_header , const struct header *actual_header , bool exact_size , const char *name ); ARGUMENTS expected_header The expected header. actual_header The header...
vdo_wait_until_not_entering_read_only_mode(9)
NAME vdo_wait_until_not_entering_read_only_mode - Wait until no read-only notifications are in progress and prevent any subsequent notifications. SYNOPSIS void vdo_wait_until_not_entering_read_only_mode (struct vdo_completion *parent ); ARGUMENTS parent The completion to notify when no threads are entering read-...
vdo_waiter_as_flush(9)
NAME vdo_waiter_as_flush - Convert a vdo_flush's generic wait queue entry back to the vdo_flush. SYNOPSIS struct vdo_flush * vdo_waiter_as_flush (struct vdo_waiter *waiter ); ARGUMENTS waiter The wait queue entry to convert. RETURN The wait queue entry as a vdo_flush. SEE ALSO Kernel file ./drivers/md/dm-vdo...
vdo_waiter_is_waiting(9)
NAME vdo_waiter_is_waiting - Check whether a waiter is waiting. SYNOPSIS bool vdo_waiter_is_waiting (struct vdo_waiter *waiter ); ARGUMENTS waiter The waiter to check. RETURN true if the waiter is on some vdo_wait_queue. SEE ALSO Kernel file ./drivers/md/dm-vdo/wait-queue.h vdo_waitq_init(9), vdo_waitq_has_wai...
vdo_waitq_dequeue_matching_waiters(9)
NAME vdo_waitq_dequeue_matching_waiters - Remove all waiters that match based on the specified matching method and append them to a vdo_wait_queue. SYNOPSIS void vdo_waitq_dequeue_matching_waiters (struct vdo_wait_queue *waitq , vdo_waiter_match_fn waiter_match , void *match_context , struct vdo_wait_queue *matched_wa...
vdo_waitq_dequeue_waiter(9)
NAME vdo_waitq_dequeue_waiter - Remove the first (oldest) waiter from a waitq. SYNOPSIS struct vdo_waiter * vdo_waitq_dequeue_waiter (struct vdo_wait_queue *waitq ); ARGUMENTS waitq The vdo_wait_queue from which to remove the first entry. DESCRIPTION The caller will be responsible for waking the waiter by cont...
vdo_waitq_enqueue_waiter(9)
NAME vdo_waitq_enqueue_waiter - Add a waiter to the tail end of a waitq. SYNOPSIS void vdo_waitq_enqueue_waiter (struct vdo_wait_queue *waitq , struct vdo_waiter *waiter ); ARGUMENTS waitq The vdo_wait_queue to which to add the waiter. waiter The waiter to add to the waitq. DESCRIPTION The waiter ...
vdo_waitq_get_first_waiter(9)
NAME vdo_waitq_get_first_waiter - Return the waiter that is at the head end of a waitq. SYNOPSIS struct vdo_waiter * vdo_waitq_get_first_waiter (const struct vdo_wait_queue *waitq ); ARGUMENTS waitq The vdo_wait_queue from which to get the first waiter. RETURN The first (oldest) waiter in the waitq, or NULL if...
vdo_waitq_has_waiters(9)
NAME vdo_waitq_has_waiters - Check whether a vdo_wait_queue has any entries waiting. SYNOPSIS bool vdo_waitq_has_waiters (const struct vdo_wait_queue *waitq ); ARGUMENTS waitq The vdo_wait_queue to query. RETURN true if there are any waiters in the waitq. SEE ALSO Kernel file ./drivers/md/dm-vdo/wait-queue.h ...