id
stringlengths
4
63
text
stringlengths
153
8.81M
blk_insert_cloned_request(9)
NAME blk_insert_cloned_request - Helper for stacking drivers to submit a request SYNOPSIS blk_status_t blk_insert_cloned_request (struct request *rq ); ARGUMENTS rq the request being queued SEE ALSO Kernel file ./block/blk-mq.c blk_mq_wait_quiesce_done(9), blk_mq_quiesce_queue(9), blk_update_request(9)...
blk_kick_flush(9)
NAME blk_kick_flush - consider issuing flush request SYNOPSIS void blk_kick_flush (struct request_queue *q , struct blk_flush_queue *fq , blk_opf_t flags ); ARGUMENTS q request_queue being kicked fq flush queue flags cmd_flags of the original request DESCRIPTION Flush related...
blk_lld_busy(9)
NAME blk_lld_busy - Check if underlying low-level drivers of a device are busy SYNOPSIS int blk_lld_busy (struct request_queue *q ); ARGUMENTS q the queue of the device being checked DESCRIPTION Check if underlying low-level drivers of a device are busy. If the drivers want to export their busy state, the...
blk_mark_disk_dead(9)
NAME blk_mark_disk_dead - mark a disk as dead SYNOPSIS void blk_mark_disk_dead (struct gendisk *disk ); ARGUMENTS disk disk to mark as dead DESCRIPTION Mark as disk as dead (e.g. surprise removed) and don't accept any new I/O to this disk. SEE ALSO Kernel file ./block/genhd.c bdev_count_inflight(9), __regist...
blk_mq_add_to_batch(9)
NAME blk_mq_add_to_batch - add a request to the completion batch SYNOPSIS bool blk_mq_add_to_batch (struct request *req , struct io_comp_batch *iob , bool is_error , void (*complete)(struct io_comp_batch *) ); ARGUMENTS req The request to add to batch iob The batch to add the request i...
blk_mq_all_tag_iter(9)
NAME blk_mq_all_tag_iter - iterate over all requests in a tag map SYNOPSIS void blk_mq_all_tag_iter (struct blk_mq_tags *tags , busy_tag_iter_fn *fn , void *priv ); ARGUMENTS tags Tag map to iterate over. fn Pointer to the function that will be called for each request. fn will be called as fol...
blk_mq_complete_request(9)
NAME blk_mq_complete_request - end I/O on a request SYNOPSIS void blk_mq_complete_request (struct request *rq ); ARGUMENTS rq the request being processed DESCRIPTION Complete a request by scheduling the ->complete_rq operation. SEE ALSO Kernel file ./block/blk-mq.c blk_mq_wait_quiesce_done(9), blk_...
blk_mq_delay_run_hw_queue(9)
NAME blk_mq_delay_run_hw_queue - Run a hardware queue asynchronously. SYNOPSIS void blk_mq_delay_run_hw_queue (struct blk_mq_hw_ctx *hctx , unsigned long msecs ); ARGUMENTS hctx Pointer to the hardware queue to run. msecs Milliseconds of delay to wait before running the queue. DESCRIPTION Run a ...
blk_mq_delay_run_hw_queues(9)
NAME blk_mq_delay_run_hw_queues - Run all hardware queues asynchronously. SYNOPSIS void blk_mq_delay_run_hw_queues (struct request_queue *q , unsigned long msecs ); ARGUMENTS q Pointer to the request queue to run. msecs Milliseconds of delay to wait before running the queues. SEE ALSO Kernel ...
blk_mq_destroy_queue(9)
NAME blk_mq_destroy_queue - shutdown a request queue SYNOPSIS void blk_mq_destroy_queue (struct request_queue *q ); ARGUMENTS q request queue to shutdown DESCRIPTION This shuts down a request queue allocated by blk_mq_alloc_queue. All future requests will be failed with -ENODEV. The caller is responsible f...
blk_mq_hw_queue_to_node(9)
NAME blk_mq_hw_queue_to_node - Look up the memory node for a hardware queue index SYNOPSIS int blk_mq_hw_queue_to_node (struct blk_mq_queue_map *qmap , unsigned int index ); ARGUMENTS qmap CPU to hardware queue map. index hardware queue index. DESCRIPTION We have no quick way of doing reverse lo...
blk_mq_map_hw_queues(9)
NAME blk_mq_map_hw_queues - Create CPU to hardware queue mapping SYNOPSIS void blk_mq_map_hw_queues (struct blk_mq_queue_map *qmap , struct device *dev , unsigned int offset ); ARGUMENTS qmap CPU to hardware queue map dev The device to map queues offset Queue offset to use for the ...
blk_mq_num_online_queues(9)
NAME blk_mq_num_online_queues - Calc nr of queues for multiqueue devices SYNOPSIS unsigned int blk_mq_num_online_queues (unsigned int max_queues ); ARGUMENTS max_queues The maximum number of queues the hardware/driver supports. If max_queues is 0, the argument is ignored. DESCRIPTION Calculates the number of queues...
blk_mq_num_possible_queues(9)
NAME blk_mq_num_possible_queues - Calc nr of queues for multiqueue devices SYNOPSIS unsigned int blk_mq_num_possible_queues (unsigned int max_queues ); ARGUMENTS max_queues The maximum number of queues the hardware/driver supports. If max_queues is 0, the argument is ignored. DESCRIPTION Calculates the number of qu...
blk_mq_queue_tag_busy_iter(9)
NAME blk_mq_queue_tag_busy_iter - iterate over all requests with a driver tag SYNOPSIS void blk_mq_queue_tag_busy_iter (struct request_queue *q , busy_tag_iter_fn *fn , void *priv ); ARGUMENTS q Request queue to examine. fn Pointer to the function that will be called for each request on q. ...
blk_mq_quiesce_queue(9)
NAME blk_mq_quiesce_queue - wait until all ongoing dispatches have finished SYNOPSIS void blk_mq_quiesce_queue (struct request_queue *q ); ARGUMENTS q request queue. NOTE this function does not prevent that the struct request end_io callback function is invoked. Once this function is returned, we make sure...
blk_mq_request_bypass_insert(9)
NAME blk_mq_request_bypass_insert - Insert a request at dispatch list. SYNOPSIS void blk_mq_request_bypass_insert (struct request *rq , blk_insert_t flags ); ARGUMENTS rq Pointer to request to be inserted. flags BLK_MQ_INSERT_* DESCRIPTION Should only be used carefully, when the caller knows w...
blk_mq_rq_from_pdu(9)
NAME blk_mq_rq_from_pdu - cast a PDU to a request SYNOPSIS struct request * blk_mq_rq_from_pdu (void *pdu ); ARGUMENTS pdu the PDU (Protocol Data Unit) to be casted RETURN request DESCRIPTION Driver command data is immediately after the request. So subtract request size to get back to the original request. ...
blk_mq_rq_state(9)
NAME blk_mq_rq_state - read the current MQ_RQ_* state of a request SYNOPSIS enum mq_rq_state blk_mq_rq_state (struct request *rq ); ARGUMENTS rq target request. SEE ALSO Kernel file ./include/linux/blk-mq.h enum blk_eh_timer_return(9), struct blk_mq_hw_ctx(9), struct blk_mq_queue_map(9), enum hctx_ty...
blk_mq_rq_to_pdu(9)
NAME blk_mq_rq_to_pdu - cast a request to a PDU SYNOPSIS void * blk_mq_rq_to_pdu (struct request *rq ); ARGUMENTS rq the request to be casted RETURN pointer to the PDU DESCRIPTION Driver command data is immediately after the request. So add request to get the PDU. SEE ALSO Kernel file ./include/linux/bl...
blk_mq_run_hw_queue(9)
NAME blk_mq_run_hw_queue - Start to run a hardware queue. SYNOPSIS void blk_mq_run_hw_queue (struct blk_mq_hw_ctx *hctx , bool async ); ARGUMENTS hctx Pointer to the hardware queue to run. async If we want to run the queue asynchronously. DESCRIPTION Check if the request queue is not in a quiesc...
blk_mq_run_hw_queues(9)
NAME blk_mq_run_hw_queues - Run all hardware queues in a request queue. SYNOPSIS void blk_mq_run_hw_queues (struct request_queue *q , bool async ); ARGUMENTS q Pointer to the request queue to run. async If we want to run the queue asynchronously. SEE ALSO Kernel file ./block/blk-mq.c blk_m...
blk_mq_start_request(9)
NAME blk_mq_start_request - Start processing a request SYNOPSIS void blk_mq_start_request (struct request *rq ); ARGUMENTS rq Pointer to request to be started DESCRIPTION Function used by device drivers to notify the block layer that a request is going to be processed now, so blk layer can do proper initial...
blk_mq_submit_bio(9)
NAME blk_mq_submit_bio - Create and send a request to block device. SYNOPSIS void blk_mq_submit_bio (struct bio *bio ); ARGUMENTS bio Bio pointer. DESCRIPTION Builds up a request structure from q and bio and send to the device. The request may not be queued directly to hardware if: * This request can be merg...
blk_mq_tagset_busy_iter(9)
NAME blk_mq_tagset_busy_iter - iterate over all started requests in a tag set SYNOPSIS void blk_mq_tagset_busy_iter (struct blk_mq_tag_set *tagset , busy_tag_iter_fn *fn , void *priv ); ARGUMENTS tagset Tag set to iterate over. fn Pointer to the function that will be called for each started requ...
blk_mq_tagset_wait_completed_request(9)
NAME blk_mq_tagset_wait_completed_request - Wait until all scheduled request completions have finished. SYNOPSIS void blk_mq_tagset_wait_completed_request (struct blk_mq_tag_set *tagset ); ARGUMENTS tagset Tag set to drain completed request NOTE This function has to be run after all IO queues are shutdown SEE ...
blk_mq_try_issue_directly(9)
NAME blk_mq_try_issue_directly - Try to send a request directly to device driver. SYNOPSIS void blk_mq_try_issue_directly (struct blk_mq_hw_ctx *hctx , struct request *rq ); ARGUMENTS hctx Pointer of the associated hardware queue. rq Pointer to request to be sent. DESCRIPTION If the device ha...
blk_mq_unique_tag(9)
NAME blk_mq_unique_tag - return a tag that is unique queue-wide SYNOPSIS u32 blk_mq_unique_tag (struct request *rq ); ARGUMENTS rq request for which to compute a unique tag DESCRIPTION The tag field in struct request is unique per hardware queue but not over all hardware queues. Hence this function that ret...
blk_mq_wait_quiesce_done(9)
NAME blk_mq_wait_quiesce_done - wait until in-progress quiesce is done SYNOPSIS void blk_mq_wait_quiesce_done (struct blk_mq_tag_set *set ); ARGUMENTS set tag_set to wait on NOTE it is driver's responsibility for making sure that quiesce has been started on or more of the request_queues of the tag_set. Thi...
blk_op_str(9)
NAME blk_op_str - Return the string "name" for an operation REQ_OP_name. SYNOPSIS const char * blk_op_str (enum req_op op ); ARGUMENTS op a request operation. DESCRIPTION Convert a request operation REQ_OP_name into the string "name". Useful for debugging and tracing BIOs and requests. For an invalid reques...
blk_path_error(9)
NAME blk_path_error - returns true if error may be path related SYNOPSIS bool blk_path_error (blk_status_t error ); ARGUMENTS error status the request was completed with DESCRIPTION This classifies block error status into non-retryable errors and ones that may be successful if retried on a failover path. RETU...
blk_pm_runtime_init(9)
NAME blk_pm_runtime_init - Block layer runtime PM initialization routine SYNOPSIS void blk_pm_runtime_init (struct request_queue *q , struct device *dev ); ARGUMENTS q the queue of the device dev the device the queue belongs to DESCRIPTION Initialize runtime-PM-related fields for q and sta...
blk_post_runtime_resume(9)
NAME blk_post_runtime_resume - Post runtime resume processing SYNOPSIS void blk_post_runtime_resume (struct request_queue *q ); ARGUMENTS q the queue of the device DESCRIPTION Restart the queue of a runtime suspended device. It does this regardless of whether the device's runtime-resume succeeded; eve...
blk_post_runtime_suspend(9)
NAME blk_post_runtime_suspend - Post runtime suspend processing SYNOPSIS void blk_post_runtime_suspend (struct request_queue *q , int err ); ARGUMENTS q the queue of the device err return value of the device's runtime_suspend function DESCRIPTION Update the queue's runtime status accordin...
blk_pre_runtime_resume(9)
NAME blk_pre_runtime_resume - Pre runtime resume processing SYNOPSIS void blk_pre_runtime_resume (struct request_queue *q ); ARGUMENTS q the queue of the device DESCRIPTION Update the queue's runtime status to RESUMING in preparation for the runtime resume of the device. This function should be called nea...
blk_pre_runtime_suspend(9)
NAME blk_pre_runtime_suspend - Pre runtime suspend check SYNOPSIS int blk_pre_runtime_suspend (struct request_queue *q ); ARGUMENTS q the queue of the device DESCRIPTION This function will check if runtime suspend is allowed for the device by examining if there are any requests pending in the queue. If...
blk_put_queue(9)
NAME blk_put_queue - decrement the request_queue refcount SYNOPSIS void blk_put_queue (struct request_queue *q ); ARGUMENTS q the request_queue structure to decrement the refcount for DESCRIPTION Decrements the refcount of the request_queue and free it when the refcount reaches 0. SEE ALSO Kernel file ./...
blk_queue_enter(9)
NAME blk_queue_enter - try to increase q->q_usage_counter SYNOPSIS int blk_queue_enter (struct request_queue *q , blk_mq_req_flags_t flags ); ARGUMENTS q request queue pointer flags BLK_MQ_REQ_NOWAIT and/or BLK_MQ_REQ_PM SEE ALSO Kernel file ./block/blk-core.c blk_queue_flag_set(9), blk_qu...
blk_queue_flag_clear(9)
NAME blk_queue_flag_clear - atomically clear a queue flag SYNOPSIS void blk_queue_flag_clear (unsigned int flag , struct request_queue *q ); ARGUMENTS flag flag to be cleared q request queue SEE ALSO Kernel file ./block/blk-core.c blk_queue_flag_set(9), blk_op_str(9), blk_sync_queue(9),...
blk_queue_flag_set(9)
NAME blk_queue_flag_set - atomically set a queue flag SYNOPSIS void blk_queue_flag_set (unsigned int flag , struct request_queue *q ); ARGUMENTS flag flag to be set q request queue SEE ALSO Kernel file ./block/blk-core.c blk_queue_flag_clear(9), blk_op_str(9), blk_sync_queue(9), blk_se...
blk_register_queue(9)
NAME blk_register_queue - register a block layer queue with sysfs SYNOPSIS int blk_register_queue (struct gendisk *disk ); ARGUMENTS disk Disk of which the request queue should be registered with sysfs. SEE ALSO Kernel file ./block/blk-sysfs.c blk_unregister_queue(9) April 2026 ...
blk_revalidate_disk_zones(9)
NAME blk_revalidate_disk_zones - (re)allocate and initialize zone write plugs SYNOPSIS int blk_revalidate_disk_zones (struct gendisk *disk ); ARGUMENTS disk Target disk DESCRIPTION Helper function for low-level device drivers to check, (re) allocate and initialize resources used for managing zoned disks. Th...
blk_rq_count_integrity_sg(9)
NAME blk_rq_count_integrity_sg - Count number of integrity scatterlist elements SYNOPSIS int blk_rq_count_integrity_sg (struct request_queue *q , struct bio *bio ); ARGUMENTS q request queue bio bio with integrity metadata attached DESCRIPTION Returns the number of elements required in a sc...
blk_rq_dma_map_coalesce(9)
NAME blk_rq_dma_map_coalesce - were all segments coalesced? SYNOPSIS bool blk_rq_dma_map_coalesce (struct dma_iova_state *state ); ARGUMENTS state DMA state to check DESCRIPTION Returns true if blk_rq_dma_map_iter_start coalesced all segments into a single DMA range. SEE ALSO Kernel file ./include/linux/blk-m...
blk_rq_dma_map_iter_next(9)
NAME blk_rq_dma_map_iter_next - map the next DMA segment for a request SYNOPSIS bool blk_rq_dma_map_iter_next (struct request *req , struct device *dma_dev , struct blk_dma_iter *iter ); ARGUMENTS req request to map dma_dev device to map to iter block layer DMA iterator DESCRIPTION...
blk_rq_dma_map_iter_start(9)
NAME blk_rq_dma_map_iter_start - map the first DMA segment for a request SYNOPSIS bool blk_rq_dma_map_iter_start (struct request *req , struct device *dma_dev , struct dma_iova_state *state , struct blk_dma_iter *iter ); ARGUMENTS req request to map dma_dev device to map to state DMA...
blk_rq_dma_unmap(9)
NAME blk_rq_dma_unmap - try to DMA unmap a request SYNOPSIS bool blk_rq_dma_unmap (struct request *req , struct device *dma_dev , struct dma_iova_state *state , size_t mapped_len , enum pci_p2pdma_map_type map ); ARGUMENTS req request to unmap dma_dev device to unmap from state DMA I...
blk_rq_integrity_dma_map_iter_next(9)
NAME blk_rq_integrity_dma_map_iter_next - map the next integrity DMA segment for a request SYNOPSIS bool blk_rq_integrity_dma_map_iter_next (struct request *req , struct device *dma_dev , struct blk_dma_iter *iter ); ARGUMENTS req request to map dma_dev device to map to iter block l...
blk_rq_integrity_dma_map_iter_start(9)
NAME blk_rq_integrity_dma_map_iter_start - map the first integrity DMA segment for a request SYNOPSIS bool blk_rq_integrity_dma_map_iter_start (struct request *req , struct device *dma_dev , struct dma_iova_state *state , struct blk_dma_iter *iter ); ARGUMENTS req request to map dma_dev device to ...
blk_rq_map_integrity_sg(9)
NAME blk_rq_map_integrity_sg - Map integrity metadata into a scatterlist SYNOPSIS int blk_rq_map_integrity_sg (struct request *rq , struct scatterlist *sglist ); ARGUMENTS rq request to map sglist target scatterlist DESCRIPTION Map the integrity vectors in request into a scatterlist. The scatt...
blk_rq_map_kern(9)
NAME blk_rq_map_kern - map kernel data to a request, for passthrough requests SYNOPSIS int blk_rq_map_kern (struct request *rq , void *kbuf , unsigned int len , gfp_t gfp_mask ); ARGUMENTS rq request to fill kbuf the kernel buffer len length of user data gfp_mask mem...
blk_rq_map_user_iov(9)
NAME blk_rq_map_user_iov - map user data to a request, for passthrough requests SYNOPSIS int blk_rq_map_user_iov (struct request_queue *q , struct request *rq , struct rq_map_data *map_data , const struct iov_iter *iter , gfp_t gfp_mask ); ARGUMENTS q request queue where request should be inserted r...
blk_rq_nr_bvec(9)
NAME blk_rq_nr_bvec - return number of bvecs in a request SYNOPSIS unsigned int blk_rq_nr_bvec (struct request *rq ); ARGUMENTS rq request to calculate bvecs for DESCRIPTION Returns the number of bvecs. SEE ALSO Kernel file ./include/linux/blk-mq.h enum blk_eh_timer_return(9), struct blk_mq_hw_ctx(9)...
blk_rq_prep_clone(9)
NAME blk_rq_prep_clone - Helper function to setup clone request SYNOPSIS int blk_rq_prep_clone (struct request *rq , struct request *rq_src , struct bio_set *bs , gfp_t gfp_mask , int (*bio_ctr)(struct bio *, struct bio *, void *) , void *data ); ARGUMENTS rq the request to be setup rq_src origi...
blk_rq_set_mixed_merge(9)
NAME blk_rq_set_mixed_merge - mark a request as mixed merge SYNOPSIS void blk_rq_set_mixed_merge (struct request *rq ); ARGUMENTS rq request to mark as mixed merge DESCRIPTION rq is about to be mixed merged. Make sure the attributes which can be mixed are set in each bio and mark rq as mixed merged. SEE A...
blk_rq_unmap_user(9)
NAME blk_rq_unmap_user - unmap a request with user data SYNOPSIS int blk_rq_unmap_user (struct bio *bio ); ARGUMENTS bio start of bio list DESCRIPTION Unmap a rq previously mapped by blk_rq_map_user. The caller must supply the original rq->bio from the blk_rq_map_user return, since the I/O completion may hav...
blk_rq_unprep_clone(9)
NAME blk_rq_unprep_clone - Helper function to free all bios in a cloned request SYNOPSIS void blk_rq_unprep_clone (struct request *rq ); ARGUMENTS rq the clone request to be cleaned up DESCRIPTION Free all bios in rq for a cloned request. SEE ALSO Kernel file ./block/blk-mq.c blk_mq_wait_quiesce_done(9)...
blk_set_pm_only(9)
NAME blk_set_pm_only - increment pm_only counter SYNOPSIS void blk_set_pm_only (struct request_queue *q ); ARGUMENTS q request queue pointer SEE ALSO Kernel file ./block/blk-core.c blk_queue_flag_set(9), blk_queue_flag_clear(9), blk_op_str(9), blk_sync_queue(9), blk_put_queue(9), blk_queue_en...
blk_set_queue_depth(9)
NAME blk_set_queue_depth - tell the block layer about the device queue depth SYNOPSIS void blk_set_queue_depth (struct request_queue *q , unsigned int depth ); ARGUMENTS q the request queue for the device depth queue depth SEE ALSO Kernel file ./block/blk-settings.c blk_set_stacking_limits(9)...
blk_set_stacking_limits(9)
NAME blk_set_stacking_limits - set default limits for stacking devices SYNOPSIS void blk_set_stacking_limits (struct queue_limits *lim ); ARGUMENTS lim the queue_limits structure to reset DESCRIPTION Prepare queue limits for applying limits from underlying devices using blk_stack_limits. SEE ALSO Kernel f...
blk_stack_limits(9)
NAME blk_stack_limits - adjust queue_limits for stacked devices SYNOPSIS int blk_stack_limits (struct queue_limits *t , struct queue_limits *b , sector_t start ); ARGUMENTS t the stacking driver limits (top device) b the underlying queue limits (bottom, component device) start ...
blk_start_plug(9)
NAME blk_start_plug - initialize blk_plug and track it inside the task_struct SYNOPSIS void blk_start_plug (struct blk_plug *plug ); ARGUMENTS plug The struct blk_plug that needs to be initialized DESCRIPTION blk_start_plug indicates to the block layer an intent by the caller to submit multiple I/O requests ...
blk_stat_activate_msecs(9)
NAME blk_stat_activate_msecs - Gather block statistics during a time window in milliseconds. SYNOPSIS void blk_stat_activate_msecs (struct blk_stat_callback *cb , unsigned int msecs ); ARGUMENTS cb The callback. msecs Number of milliseconds to gather statistics for. DESCRIPTION The timer callb...
blk_stat_activate_nsecs(9)
NAME blk_stat_activate_nsecs - Gather block statistics during a time window in nanoseconds. SYNOPSIS void blk_stat_activate_nsecs (struct blk_stat_callback *cb , u64 nsecs ); ARGUMENTS cb The callback. nsecs Number of nanoseconds to gather statistics for. DESCRIPTION The timer callback will be...
blk_stat_add_callback(9)
NAME blk_stat_add_callback - Add a block statistics callback to be run on a request queue. SYNOPSIS void blk_stat_add_callback (struct request_queue *q , struct blk_stat_callback *cb ); ARGUMENTS q The request queue. cb The callback. DESCRIPTION Note that a single struct blk_stat_callback ...
blk_stat_alloc_callback(9)
NAME blk_stat_alloc_callback - Allocate a block statistics callback. SYNOPSIS struct blk_stat_callback * blk_stat_alloc_callback (void (*timer_fn)(struct blk_stat_callback *) , int (*bucket_fn)(const struct request *) , unsigned int buckets , void *data ); ARGUMENTS timer_fn Timer callback function. bucket...
blk_stat_free_callback(9)
NAME blk_stat_free_callback - Free a block statistics callback. SYNOPSIS void blk_stat_free_callback (struct blk_stat_callback *cb ); ARGUMENTS cb The callback. DESCRIPTION cb may be NULL, in which case this does nothing. If it is not NULL, cb must not be associated with a request queue. I.e., if it was ...
blk_stat_is_active(9)
NAME blk_stat_is_active - Check if a block statistics callback is currently gathering statistics. SYNOPSIS bool blk_stat_is_active (struct blk_stat_callback *cb ); ARGUMENTS cb The callback. RETURN true iff the callback is active. SEE ALSO Kernel file ./block/blk-stat.h struct blk_stat_callback(9), bl...
blk_stat_remove_callback(9)
NAME blk_stat_remove_callback - Remove a block statistics callback from a request queue. SYNOPSIS void blk_stat_remove_callback (struct request_queue *q , struct blk_stat_callback *cb ); ARGUMENTS q The request queue. cb The callback. DESCRIPTION When this returns, the callback is not runn...
blk_sync_queue(9)
NAME blk_sync_queue - cancel any pending callbacks on a queue SYNOPSIS void blk_sync_queue (struct request_queue *q ); ARGUMENTS q the queue DESCRIPTION The block layer may perform asynchronous callback activity on a queue, such as calling the unplug function after a timeout. A block device may call blk...
blk_throtl_dispatch_work_fn(9)
NAME blk_throtl_dispatch_work_fn - work function for throtl_data->dispatch_work SYNOPSIS void blk_throtl_dispatch_work_fn (struct work_struct *work ); ARGUMENTS work work item being executed DESCRIPTION This function is queued for execution when bios reach the bio_lists[] of throtl_data->service_queue. Those...
blk_trace_ioctl(9)
NAME blk_trace_ioctl - handle the ioctls associated with tracing SYNOPSIS int blk_trace_ioctl (struct block_device *bdev , unsigned cmd , char __user *arg ); ARGUMENTS bdev the block device cmd the ioctl cmd arg the argument data, if any SEE ALSO Kernel file ./kernel/trace/blkt...
blk_trace_shutdown(9)
NAME blk_trace_shutdown - stop and cleanup trace structures SYNOPSIS void blk_trace_shutdown (struct request_queue *q ); ARGUMENTS q the request queue associated with the device SEE ALSO Kernel file ./kernel/trace/blktrace.c blk_trace_ioctl(9), blk_add_trace_rq(9), blk_add_trace_bio(9), blk_add_trace_bio_r...
blk_unregister_queue(9)
NAME blk_unregister_queue - counterpart of blk_register_queue() SYNOPSIS void blk_unregister_queue (struct gendisk *disk ); ARGUMENTS disk Disk of which the request queue should be unregistered from sysfs. NOTE the caller is responsible for guaranteeing that this function is called after blk_register_queue ha...
blk_update_request(9)
NAME blk_update_request - Complete multiple bytes without completing the request SYNOPSIS bool blk_update_request (struct request *req , blk_status_t error , unsigned int nr_bytes ); ARGUMENTS req the request being processed error block status code nr_bytes number of bytes to complete...
blk_zone_cond_str(9)
NAME blk_zone_cond_str - Return a zone condition name string SYNOPSIS const char * blk_zone_cond_str (enum blk_zone_cond zone_cond ); ARGUMENTS zone_cond a zone condition BLK_ZONE_COND_name DESCRIPTION Convert a BLK_ZONE_COND_name zone condition into the string "name". Useful for the debugging and tracing zone con...
blk_zone_issue_zeroout(9)
NAME blk_zone_issue_zeroout - zero-fill a block range in a zone SYNOPSIS int blk_zone_issue_zeroout (struct block_device *bdev , sector_t sector , sector_t nr_sects , gfp_t gfp_mask ); ARGUMENTS bdev blockdev to write sector start sector nr_sects number of sectors to write gfp_m...
blk_zone_plug_bio(9)
NAME blk_zone_plug_bio - Handle a zone write BIO with zone write plugging SYNOPSIS bool blk_zone_plug_bio (struct bio *bio , unsigned int nr_segs ); ARGUMENTS bio The BIO being submitted nr_segs The number of physical segments of bio DESCRIPTION Handle write, write zeroes and zone append operati...
blkcg_activate_policy(9)
NAME blkcg_activate_policy - activate a blkcg policy on a gendisk SYNOPSIS int blkcg_activate_policy (struct gendisk *disk , const struct blkcg_policy *pol ); ARGUMENTS disk gendisk of interest pol blkcg policy to activate DESCRIPTION Activate pol on disk. Requires GFP_KERNEL context. disk...
blkcg_add_delay(9)
NAME blkcg_add_delay - add delay to this blkg SYNOPSIS void blkcg_add_delay (struct blkcg_gq *blkg , u64 now , u64 delta ); ARGUMENTS blkg blkg of interest now the current time in nanoseconds delta how many nanoseconds of delay to add DESCRIPTION Charge delta to the blkg's curren...
blkcg_clear_delay(9)
NAME blkcg_clear_delay - Disable allocator delay mechanism SYNOPSIS void blkcg_clear_delay (struct blkcg_gq *blkg ); ARGUMENTS blkg target blkg DESCRIPTION Disable use_delay mechanism. See blkcg_set_delay. SEE ALSO Kernel file ./block/blk-cgroup.h bio_issue_as_root_blkg(9), blkg_lookup(9), blkg_to_pd(9)...
blkcg_css(9)
NAME blkcg_css - find the current css SYNOPSIS struct cgroup_subsys_state * blkcg_css (void ); ARGUMENTS void no arguments DESCRIPTION Find the css associated with either the kthread or the current task. This may return a dying css, so it is up to the caller to use tryget logic to confirm it is alive and wel...
blkcg_css_offline(9)
NAME blkcg_css_offline - cgroup css_offline callback SYNOPSIS void blkcg_css_offline (struct cgroup_subsys_state *css ); ARGUMENTS css css of interest DESCRIPTION This function is called when css is about to go away. Here the cgwbs are offlined first and only once writeback associated with the blkcg has fin...
blkcg_deactivate_policy(9)
NAME blkcg_deactivate_policy - deactivate a blkcg policy on a gendisk SYNOPSIS void blkcg_deactivate_policy (struct gendisk *disk , const struct blkcg_policy *pol ); ARGUMENTS disk gendisk of interest pol blkcg policy to deactivate DESCRIPTION Deactivate pol on disk. Follows the same synchron...
blkcg_destroy_blkgs(9)
NAME blkcg_destroy_blkgs - responsible for shooting down blkgs SYNOPSIS void blkcg_destroy_blkgs (struct blkcg *blkcg ); ARGUMENTS blkcg blkcg of interest DESCRIPTION blkgs should be removed while holding both q and blkcg locks. As blkcg lock is nested inside q lock, this function performs reverse double l...
blkcg_get_fc_appid(9)
NAME blkcg_get_fc_appid - get the fc app identifier associated with a bio SYNOPSIS char * blkcg_get_fc_appid (struct bio *bio ); ARGUMENTS bio target bio DESCRIPTION On success return the fc_app_id, on failure return NULL SEE ALSO Kernel file ./block/blk-cgroup-fc-appid.c blkcg_set_fc_appid(9) April 2026 ...
blkcg_maybe_throttle_current(9)
NAME blkcg_maybe_throttle_current - throttle the current task if it has been marked SYNOPSIS void blkcg_maybe_throttle_current (void ); ARGUMENTS void no arguments DESCRIPTION This is only called if we've been marked with set_notify_resume. Obviously we can be set_notify_resume for reasons other than blkcg ...
blkcg_parent(9)
NAME blkcg_parent - get the parent of a blkcg SYNOPSIS struct blkcg * blkcg_parent (struct blkcg *blkcg ); ARGUMENTS blkcg blkcg of interest DESCRIPTION Return the parent blkcg of blkcg. Can be called anytime. SEE ALSO Kernel file ./block/blk-cgroup.c blkcg_css(9), blkg_free(9), bio_blkcg_css(9), ...
blkcg_pin_online(9)
NAME blkcg_pin_online - pin online state SYNOPSIS void blkcg_pin_online (struct cgroup_subsys_state *blkcg_css ); ARGUMENTS blkcg_css blkcg of interest DESCRIPTION While pinned, a blkcg is kept online. This is primarily used to impedance-match blkg and cgwb lifetimes so that blkg doesn't go offline while an assoc...
blkcg_policy_register(9)
NAME blkcg_policy_register - register a blkcg policy SYNOPSIS int blkcg_policy_register (struct blkcg_policy *pol ); ARGUMENTS pol blkcg policy to register DESCRIPTION Register pol with blkcg core. Might sleep and pol may be modified on successful registration. Returns 0 on success and -errno on failure. ...
blkcg_policy_unregister(9)
NAME blkcg_policy_unregister - unregister a blkcg policy SYNOPSIS void blkcg_policy_unregister (struct blkcg_policy *pol ); ARGUMENTS pol blkcg policy to unregister DESCRIPTION Undo blkcg_policy_register(pol). Might sleep. SEE ALSO Kernel file ./block/blk-cgroup.c blkcg_css(9), blkg_free(9), bio_blkcg_css...
blkcg_print_blkgs(9)
NAME blkcg_print_blkgs - helper for printing per-blkg data SYNOPSIS void blkcg_print_blkgs (struct seq_file *sf , struct blkcg *blkcg , u64 (*prfill)(struct seq_file *, struct blkg_policy_data *, int) , const struct blkcg_policy *pol , int data , bool show_total ); ARGUMENTS sf seq_file to print to b...
blkcg_schedule_throttle(9)
NAME blkcg_schedule_throttle - this task needs to check for throttling SYNOPSIS void blkcg_schedule_throttle (struct gendisk *disk , bool use_memdelay ); ARGUMENTS disk disk to throttle use_memdelay do we charge this to memory delay for PSI DESCRIPTION This is called by the IO con...
blkcg_set_delay(9)
NAME blkcg_set_delay - Enable allocator delay mechanism with the specified delay amount SYNOPSIS void blkcg_set_delay (struct blkcg_gq *blkg , u64 delay ); ARGUMENTS blkg target blkg delay delay duration in nsecs DESCRIPTION When enabled with this function, the delay is not decayed and must be e...
blkcg_set_fc_appid(9)
NAME blkcg_set_fc_appid - set the fc_app_id field associted to blkcg SYNOPSIS int blkcg_set_fc_appid (char *app_id , u64 cgrp_id , size_t app_id_len ); ARGUMENTS app_id application identifier cgrp_id cgroup id app_id_len size of application identifier SEE ALSO Kernel file ./block/blk-cgroup...
blkcg_unpin_online(9)
NAME blkcg_unpin_online - unpin online state SYNOPSIS void blkcg_unpin_online (struct cgroup_subsys_state *blkcg_css ); ARGUMENTS blkcg_css blkcg of interest DESCRIPTION This is primarily used to impedance-match blkg and cgwb lifetimes so that blkg doesn't go offline while an associated cgwb is still active. W...
blkcnt_t(3type)
NAME blkcnt_t - file block counts LIBRARY Standard C library (libc) SYNOPSIS #include <sys/types.h> typedef /* ... */ blkcnt_t; DESCRIPTION Used for file block counts. It is a signed integer type. STANDARDS POSIX.1-2024. HISTORY POSIX.1-2001. NOTES The following header also provides this type: <sys/stat....
blkdeactivate(8)
NAME blkdeactivate — utility to deactivate block devices SYNOPSIS blkdeactivate [-d|--dmoptions dm_options] [-e|--errors] [-h|--help] [-l|--lvmoptions lvm_options] [-r|--mdraidoptions mdraid_options] [-m|--mpathoptions mpath_options] [-u|--umount] [-o|--vdooptions vdo_options] [-v|--verbose] [device] DESCRIPTION The ...
blkdev_get_zone_info(9)
NAME blkdev_get_zone_info - Get a single zone information from cached data SYNOPSIS int blkdev_get_zone_info (struct block_device *bdev , sector_t sector , struct blk_zone *zone ); ARGUMENTS bdev Target block device sector Sector contained by the target zone zone zone structure to r...
blkdev_issue_discard(9)
NAME blkdev_issue_discard - queue a discard SYNOPSIS int blkdev_issue_discard (struct block_device *bdev , sector_t sector , sector_t nr_sects , gfp_t gfp_mask ); ARGUMENTS bdev blockdev to issue discard for sector start sector nr_sects number of sectors to discard gfp_mask m...