id
stringlengths
4
63
text
stringlengths
153
8.81M
binder_dec_node_tmpref(9)
NAME binder_dec_node_tmpref - remove a temporary reference on node SYNOPSIS void binder_dec_node_tmpref (struct binder_node *node ); ARGUMENTS node node to reference DESCRIPTION Release temporary reference on node taken via binder_inc_node_tmpref SEE ALSO Kernel file ./drivers/android/binder.c binder_p...
binder_dec_ref_for_handle(9)
NAME binder_dec_ref_for_handle - dec the ref for given handle SYNOPSIS int binder_dec_ref_for_handle (struct binder_proc *proc , uint32_t desc , bool strong , struct binder_ref_data *rdata ); ARGUMENTS proc proc containing the ref desc the handle associated with the ref strong true=...
binder_dec_ref_olocked(9)
NAME binder_dec_ref_olocked - dec the ref for given handle SYNOPSIS bool binder_dec_ref_olocked (struct binder_ref *ref , int strong ); ARGUMENTS ref ref to be decremented strong if true, strong decrement, else weak DESCRIPTION Decrement the ref. RETURN true if ref is cleaned up and ready to be...
binder_defer_copy(9)
NAME binder_defer_copy - queue a scatter-gather buffer for copy SYNOPSIS int binder_defer_copy (struct list_head *sgc_head , binder_size_t offset , const void __user *sender_uaddr , size_t length ); ARGUMENTS sgc_head list_head of scatter-gather copy list offset binder buffer offset in target process ...
binder_deferred_fd_close(9)
NAME binder_deferred_fd_close - schedule a close for the given file-descriptor SYNOPSIS void binder_deferred_fd_close (int fd ); ARGUMENTS fd file-descriptor to close DESCRIPTION See comments in binder_do_fd_close. This function is used to schedule a file-descriptor to be closed after returning from binder_...
binder_dequeue_work(9)
NAME binder_dequeue_work - Removes an item from the work list SYNOPSIS void binder_dequeue_work (struct binder_proc *proc , struct binder_work *work ); ARGUMENTS proc binder_proc associated with list work struct binder_work to remove from list DESCRIPTION Removes the specified work item from wh...
binder_do_deferred_txn_copies(9)
NAME binder_do_deferred_txn_copies - copy and fixup scatter-gather data SYNOPSIS int binder_do_deferred_txn_copies (struct binder_alloc *alloc , struct binder_buffer *buffer , struct list_head *sgc_head , struct list_head *pf_head ); ARGUMENTS alloc binder_alloc associated with buffer buffer binder...
binder_do_fd_close(9)
NAME binder_do_fd_close - close list of file descriptors SYNOPSIS void binder_do_fd_close (struct callback_head *twork ); ARGUMENTS twork callback head for task work DESCRIPTION It is not safe to call ksys_close during the binder_ioctl function if there is a chance that binder's own file descriptor might be c...
binder_enqueue_deferred_thread_work_ilocked(9)
NAME binder_enqueue_deferred_thread_work_ilocked - Add deferred thread work SYNOPSIS void binder_enqueue_deferred_thread_work_ilocked (struct binder_thread *thread , struct binder_work *work ); ARGUMENTS thread thread to queue work to work struct binder_work to add to list DESCRIPTION Adds the ...
binder_enqueue_thread_work(9)
NAME binder_enqueue_thread_work - Add an item to the thread work list SYNOPSIS void binder_enqueue_thread_work (struct binder_thread *thread , struct binder_work *work ); ARGUMENTS thread thread to queue work to work struct binder_work to add to list DESCRIPTION Adds the work to the todo list of ...
binder_enqueue_thread_work_ilocked(9)
NAME binder_enqueue_thread_work_ilocked - Add an item to the thread work list SYNOPSIS void binder_enqueue_thread_work_ilocked (struct binder_thread *thread , struct binder_work *work ); ARGUMENTS thread thread to queue work to work struct binder_work to add to list DESCRIPTION Adds the work to t...
binder_enqueue_work_ilocked(9)
NAME binder_enqueue_work_ilocked - Add an item to the work list SYNOPSIS void binder_enqueue_work_ilocked (struct binder_work *work , struct list_head *target_list ); ARGUMENTS work struct binder_work to add to list target_list list to add work to DESCRIPTION Adds the work to the specified list. Asser...
binder_find_outdated_transaction_ilocked(9)
NAME binder_find_outdated_transaction_ilocked - Find the outdated transaction SYNOPSIS struct binder_transaction * binder_find_outdated_transaction_ilocked (struct binder_transaction *t , struct list_head *target_list ); ARGUMENTS t new async transaction target_list list to find outdated transaction...
binder_free_buf(9)
NAME binder_free_buf - free the specified buffer SYNOPSIS void binder_free_buf (struct binder_proc *proc , struct binder_thread *thread , struct binder_buffer *buffer , bool is_failure ); ARGUMENTS proc binder proc that owns buffer thread binder thread performing the buffer release buffer ...
binder_free_ref(9)
NAME binder_free_ref - free the binder_ref SYNOPSIS void binder_free_ref (struct binder_ref *ref ); ARGUMENTS ref ref to free DESCRIPTION Free the binder_ref. Free the binder_node indicated by ref->node (if non-NULL) and the binder_ref_death indicated by ref->death. SEE ALSO Kernel file ./drivers/androi...
binder_free_txn_fixups(9)
NAME binder_free_txn_fixups - free unprocessed fd fixups SYNOPSIS void binder_free_txn_fixups (struct binder_transaction *t ); ARGUMENTS t binder transaction for t->from DESCRIPTION If the transaction is being torn down prior to being processed by the target process, free all of the fd fixups and fput th...
binder_get_node_from_ref(9)
NAME binder_get_node_from_ref - get the node from the given proc/desc SYNOPSIS struct binder_node * binder_get_node_from_ref (struct binder_proc *proc , u32 desc , bool need_strong_ref , struct binder_ref_data *rdata ); ARGUMENTS proc proc containing the ref desc the handle associated with the r...
binder_get_node_refs_for_txn(9)
NAME binder_get_node_refs_for_txn - Get required refs on node for txn SYNOPSIS struct binder_node * binder_get_node_refs_for_txn (struct binder_node *node , struct binder_proc **procp , uint32_t *error ); ARGUMENTS node struct binder_node for which to get refs procp returns node->proc if valid ...
binder_get_object(9)
NAME binder_get_object - gets object and checks for valid metadata SYNOPSIS size_t binder_get_object (struct binder_proc *proc , const void __user *u , struct binder_buffer *buffer , unsigned long offset , struct binder_object *object ); ARGUMENTS proc binder_proc owning the buffer u sender's...
binder_get_ref_for_node_olocked(9)
NAME binder_get_ref_for_node_olocked - get the ref associated with given node SYNOPSIS struct binder_ref * binder_get_ref_for_node_olocked (struct binder_proc *proc , struct binder_node *node , struct binder_ref *new_ref ); ARGUMENTS proc binder_proc that owns the ref node binder_node of target ...
binder_get_txn_from(9)
NAME binder_get_txn_from - safely extract the "from" thread in transaction SYNOPSIS struct binder_thread * binder_get_txn_from (struct binder_transaction *t ); ARGUMENTS t binder transaction for t->from DESCRIPTION Atomically return the "from" thread and increment the tmp_ref count for the thread to ensure...
binder_get_txn_from_and_acq_inner(9)
NAME binder_get_txn_from_and_acq_inner - get t->from and acquire inner lock SYNOPSIS struct binder_thread * binder_get_txn_from_and_acq_inner (struct binder_transaction *t ); ARGUMENTS t binder transaction for t->from DESCRIPTION Same as binder_get_txn_from except it also acquires the proc->inner_lock to...
binder_inc_node_tmpref(9)
NAME binder_inc_node_tmpref - take a temporary reference on node SYNOPSIS void binder_inc_node_tmpref (struct binder_node *node ); ARGUMENTS node node to reference DESCRIPTION Take reference on node to prevent the node from being freed while referenced only by a local variable. The inner lock is needed to se...
binder_inc_ref_for_node(9)
NAME binder_inc_ref_for_node - increment the ref for given proc/node SYNOPSIS int binder_inc_ref_for_node (struct binder_proc *proc , struct binder_node *node , bool strong , struct list_head *target_list , struct binder_ref_data *rdata ); ARGUMENTS proc proc containing the ref node target node ...
binder_inc_ref_olocked(9)
NAME binder_inc_ref_olocked - increment the ref for given handle SYNOPSIS int binder_inc_ref_olocked (struct binder_ref *ref , int strong , struct list_head *target_list ); ARGUMENTS ref ref to be incremented strong if true, strong increment, else weak target_list list to queue node work ...
binder_inner_proc_lock(9)
NAME binder_inner_proc_lock - Acquire inner lock for given binder_proc SYNOPSIS binder_inner_proc_lock (proc ); ARGUMENTS proc struct binder_proc to acquire DESCRIPTION Acquires proc->inner_lock. Used to protect todo lists SEE ALSO Kernel file ./drivers/android/binder.c binder_proc_lock(9), binder_proc_...
binder_inner_proc_unlock(9)
NAME binder_inner_proc_unlock - Release inner lock for given binder_proc SYNOPSIS binder_inner_proc_unlock (proc ); ARGUMENTS proc struct binder_proc to acquire DESCRIPTION Release lock acquired via binder_inner_proc_lock SEE ALSO Kernel file ./drivers/android/binder.c binder_proc_lock(9), binder_proc...
binder_netlink_report(9)
NAME binder_netlink_report - report a transaction failure via netlink SYNOPSIS void binder_netlink_report (struct binder_proc *proc , struct binder_transaction *t , u32 data_size , u32 error ); ARGUMENTS proc the binder proc sending the transaction t the binder transaction that failed ...
binder_node_inner_lock(9)
NAME binder_node_inner_lock - Acquire node and inner locks SYNOPSIS binder_node_inner_lock (node ); ARGUMENTS node struct binder_node to acquire DESCRIPTION Acquires node->lock. If node->proc also acquires proc->inner_lock. Used to protect binder_node fields SEE ALSO Kernel file ./drivers/android/binder.c...
binder_node_inner_unlock(9)
NAME binder_node_inner_unlock - Release node and inner locks SYNOPSIS binder_node_inner_unlock (node ); ARGUMENTS node struct binder_node to acquire DESCRIPTION Release lock acquired via binder_node_lock SEE ALSO Kernel file ./drivers/android/binder.c binder_proc_lock(9), binder_proc_unlock(9), binde...
binder_node_lock(9)
NAME binder_node_lock - Acquire spinlock for given binder_node SYNOPSIS binder_node_lock (node ); ARGUMENTS node struct binder_node to acquire DESCRIPTION Acquires node->lock. Used to protect binder_node fields SEE ALSO Kernel file ./drivers/android/binder.c binder_proc_lock(9), binder_proc_unlock(9), bi...
binder_node_unlock(9)
NAME binder_node_unlock - Release spinlock for given binder_proc SYNOPSIS binder_node_unlock (node ); ARGUMENTS node struct binder_node to acquire DESCRIPTION Release lock acquired via binder_node_lock SEE ALSO Kernel file ./drivers/android/binder.c binder_proc_lock(9), binder_proc_unlock(9), binder_inn...
binder_proc_dec_tmpref(9)
NAME binder_proc_dec_tmpref - decrement proc->tmp_ref SYNOPSIS void binder_proc_dec_tmpref (struct binder_proc *proc ); ARGUMENTS proc proc to decrement DESCRIPTION A binder_proc needs to be kept alive while being used to create or handle a transaction. proc->tmp_ref is incremented when creating a new tran...
binder_proc_lock(9)
NAME binder_proc_lock - Acquire outer lock for given binder_proc SYNOPSIS binder_proc_lock (proc ); ARGUMENTS proc struct binder_proc to acquire DESCRIPTION Acquires proc->outer_lock. Used to protect binder_ref structures associated with the given proc. SEE ALSO Kernel file ./drivers/android/binder.c bind...
binder_proc_transaction(9)
NAME binder_proc_transaction - sends a transaction to a process and wakes it up SYNOPSIS int binder_proc_transaction (struct binder_transaction *t , struct binder_proc *proc , struct binder_thread *thread ); ARGUMENTS t transaction to send proc process to send the transaction to threa...
binder_proc_unlock(9)
NAME binder_proc_unlock - Release outer lock for given binder_proc SYNOPSIS binder_proc_unlock (proc ); ARGUMENTS proc struct binder_proc to acquire DESCRIPTION Release lock acquired via binder_proc_lock SEE ALSO Kernel file ./drivers/android/binder.c binder_proc_lock(9), binder_inner_proc_lock(9), bind...
binder_select_thread_ilocked(9)
NAME binder_select_thread_ilocked - selects a thread for doing proc work. SYNOPSIS struct binder_thread * binder_select_thread_ilocked (struct binder_proc *proc ); ARGUMENTS proc process to select a thread from DESCRIPTION Note that calling this function moves the thread off the waiting_threads list, so it...
binder_thread_dec_tmpref(9)
NAME binder_thread_dec_tmpref - decrement thread->tmp_ref SYNOPSIS void binder_thread_dec_tmpref (struct binder_thread *thread ); ARGUMENTS thread thread to decrement DESCRIPTION A thread needs to be kept alive while being used to create or handle a transaction. binder_get_txn_from is used to safely extra...
binder_update_ref_for_handle(9)
NAME binder_update_ref_for_handle - inc/dec the ref for given handle SYNOPSIS int binder_update_ref_for_handle (struct binder_proc *proc , uint32_t desc , bool increment , bool strong , struct binder_ref_data *rdata ); ARGUMENTS proc proc containing the ref desc the handle associated with the re...
binder_validate_fixup(9)
NAME binder_validate_fixup - validates pointer/fd fixups happen in order. SYNOPSIS bool binder_validate_fixup (struct binder_proc *proc , struct binder_buffer *b , binder_size_t objects_start_offset , binder_size_t buffer_obj_offset , binder_size_t fixup_offset , binder_size_t last_obj_offset , binder_size_t ...
binder_validate_ptr(9)
NAME binder_validate_ptr - validates binder_buffer_object in a binder_buffer. SYNOPSIS struct binder_buffer_object * binder_validate_ptr (struct binder_proc *proc , struct binder_buffer *b , struct binder_object *object , binder_size_t index , binder_size_t start_offset , binder_size_t *object_offsetp , binder_siz...
binder_wakeup_thread_ilocked(9)
NAME binder_wakeup_thread_ilocked - wakes up a thread for doing proc work. SYNOPSIS void binder_wakeup_thread_ilocked (struct binder_proc *proc , struct binder_thread *thread , bool sync ); ARGUMENTS proc process to wake up a thread in thread specific thread to wake-up (may be NULL) sync ...
binder_worklist_empty(9)
NAME binder_worklist_empty - Check if no items on the work list SYNOPSIS bool binder_worklist_empty (struct binder_proc *proc , struct list_head *list ); ARGUMENTS proc binder_proc associated with list list list to check RETURN true if there are no items on list, else false SEE ALSO Kernel f...
binderfs_binder_ctl_create(9)
NAME binderfs_binder_ctl_create - create a new binder-control device SYNOPSIS int binderfs_binder_ctl_create (struct super_block *sb ); ARGUMENTS sb super block of the binderfs mount DESCRIPTION This function creates a new binder-control device node in the binderfs mount referred to by sb. RETURN 0 on succ...
binderfs_binder_device_create(9)
NAME binderfs_binder_device_create - allocate inode from super block of a binderfs mount SYNOPSIS int binderfs_binder_device_create (struct inode *ref_inode , struct binderfs_device __user *userp , struct binderfs_device *req ); ARGUMENTS ref_inode inode from which the super block will be taken userp ...
bindresvport(3)
NAME bindresvport - bind a socket to a privileged IP port LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <sys/types.h> #include <netinet/in.h> int bindresvport(int sockfd, struct sockaddr_in *sin); DESCRIPTION bindresvport() is used to bind the socket referred to by the file descriptor sockfd to a ...
binfmt.d(5)
NAME binfmt.d - Configure additional binary formats for executables at boot SYNOPSIS /etc/binfmt.d/*.conf /run/binfmt.d/*.conf /usr/local/lib/binfmt.d/*.conf /usr/lib/binfmt.d/*.conf DESCRIPTION At boot, systemd-binfmt.service(8) reads configuration files from the above directories to register in the kernel additiona...
bio.7ssl(7)
NAME bio - Basic I/O abstraction SYNOPSIS #include <openssl/bio.h> DESCRIPTION A BIO is an I/O abstraction, it hides many of the underlying I/O details from an application. If an application uses a BIO for its I/O it can transparently handle SSL connections, unencrypted network connections and file I/O. There...
bio_add_folio(9)
NAME bio_add_folio - Attempt to add part of a folio to a bio. SYNOPSIS bool bio_add_folio (struct bio *bio , struct folio *folio , size_t len , size_t off ); ARGUMENTS bio BIO to add to. folio Folio to add. len How many bytes from the folio to add. off First byte ...
bio_add_max_vecs(9)
NAME bio_add_max_vecs - number of bio_vecs needed to add data to a bio SYNOPSIS unsigned int bio_add_max_vecs (void *kaddr , unsigned int len ); ARGUMENTS kaddr kernel virtual address to add len length in bytes to add DESCRIPTION Calculate how many bio_vecs need to be allocated to add the kerne...
bio_add_page(9)
NAME bio_add_page - attempt to add page(s) to bio SYNOPSIS int bio_add_page (struct bio *bio , struct page *page , unsigned int len , unsigned int offset ); ARGUMENTS bio destination bio page start page to add len vec entry length, may cross pages offset vec entry o...
bio_add_virt_nofail(9)
NAME bio_add_virt_nofail - add data in the direct kernel mapping to a bio SYNOPSIS void bio_add_virt_nofail (struct bio *bio , void *vaddr , unsigned len ); ARGUMENTS bio destination bio vaddr data to add len length of the data to add, may cross pages DESCRIPTION Add the data at...
bio_add_vmalloc(9)
NAME bio_add_vmalloc - add a vmalloc region to a bio SYNOPSIS bool bio_add_vmalloc (struct bio *bio , void *vaddr , unsigned int len ); ARGUMENTS bio destination bio vaddr vmalloc address to add len total length in bytes of the data to add DESCRIPTION Add data starting at vadd...
bio_add_vmalloc_chunk(9)
NAME bio_add_vmalloc_chunk - add a vmalloc chunk to a bio SYNOPSIS unsigned int bio_add_vmalloc_chunk (struct bio *bio , void *vaddr , unsigned len ); ARGUMENTS bio destination bio vaddr vmalloc address to add len total length in bytes of the data to add DESCRIPTION Add data s...
bio_advance(9)
NAME bio_advance - increment/complete a bio by some number of bytes SYNOPSIS void bio_advance (struct bio *bio , unsigned int nbytes ); ARGUMENTS bio bio to advance nbytes number of bytes to complete DESCRIPTION This updates bi_sector, bi_size and bi_idx; if the number of bytes to complete doe...
bio_alloc_bioset(9)
NAME bio_alloc_bioset - allocate a bio for I/O SYNOPSIS struct bio * bio_alloc_bioset (struct block_device *bdev , unsigned short nr_vecs , blk_opf_t opf , gfp_t gfp_mask , struct bio_set *bs ); ARGUMENTS bdev block device to allocate the bio for (can be NULL) nr_vecs number of bvecs to pre-allocat...
bio_alloc_clone(9)
NAME bio_alloc_clone - clone a bio that shares the original bio's biovec SYNOPSIS struct bio * bio_alloc_clone (struct block_device *bdev , struct bio *bio_src , gfp_t gfp , struct bio_set *bs ); ARGUMENTS bdev block_device to clone onto bio_src bio to clone from gfp allocation prio...
bio_associate_blkg(9)
NAME bio_associate_blkg - associate a bio with a blkg SYNOPSIS void bio_associate_blkg (struct bio *bio ); ARGUMENTS bio target bio DESCRIPTION Associate bio with the blkg found from the bio's css and request_queue. If one is not found, bio_lookup_blkg creates the blkg. If a blkg is already associa...
bio_associate_blkg_from_css(9)
NAME bio_associate_blkg_from_css - associate a bio with a specified css SYNOPSIS void bio_associate_blkg_from_css (struct bio *bio , struct cgroup_subsys_state *css ); ARGUMENTS bio target bio css target css DESCRIPTION Associate bio with the blkg found by combining the css's blkg and the re...
bio_blkcg_css(9)
NAME bio_blkcg_css - return the blkcg CSS associated with a bio SYNOPSIS struct cgroup_subsys_state * bio_blkcg_css (struct bio *bio ); ARGUMENTS bio target bio DESCRIPTION This returns the CSS for the blkcg associated with a bio, or NULL if not associated. Callers are expected to either handle NULL or know ...
bio_chain(9)
NAME bio_chain - chain bio completions SYNOPSIS void bio_chain (struct bio *bio , struct bio *parent ); ARGUMENTS bio the target bio parent the parent bio of bio DESCRIPTION The caller won't have a bi_end_io called when bio completes - instead, parent's bi_end_io won't be called until both pa...
bio_chain_and_submit(9)
NAME bio_chain_and_submit - submit a bio after chaining it to another one SYNOPSIS struct bio * bio_chain_and_submit (struct bio *prev , struct bio *new ); ARGUMENTS prev bio to chain and submit new bio to chain to DESCRIPTION If prev is non-NULL, chain it to new and submit it. RETURN new. S...
bio_clone_blkg_association(9)
NAME bio_clone_blkg_association - clone blkg association from src to dst bio SYNOPSIS void bio_clone_blkg_association (struct bio *dst , struct bio *src ); ARGUMENTS dst destination bio src source bio SEE ALSO Kernel file ./block/blk-cgroup.c blkcg_css(9), blkg_free(9), bio_blkcg_css(9), blk...
bio_copy_data(9)
NAME bio_copy_data - copy contents of data buffers from one bio to another SYNOPSIS void bio_copy_data (struct bio *dst , struct bio *src ); ARGUMENTS dst destination bio src source bio DESCRIPTION Stops when it reaches the end of either src or dst - that is, copies min(src->bi_size, dst->bi_...
bio_copy_from_iter(9)
NAME bio_copy_from_iter - copy all pages from iov_iter to bio SYNOPSIS int bio_copy_from_iter (struct bio *bio , struct iov_iter *iter ); ARGUMENTS bio The struct bio which describes the I/O as destination iter iov_iter as source DESCRIPTION Copy all pages from iov_iter to bio. Returns 0 on s...
bio_copy_kern(9)
NAME bio_copy_kern - copy kernel address into bio SYNOPSIS struct bio * bio_copy_kern (struct request *rq , void *data , unsigned int len , gfp_t gfp_mask ); ARGUMENTS rq request to fill data pointer to buffer to copy len length in bytes gfp_mask allocation flags for...
bio_copy_to_iter(9)
NAME bio_copy_to_iter - copy all pages from bio to iov_iter SYNOPSIS int bio_copy_to_iter (struct bio *bio , struct iov_iter iter ); ARGUMENTS bio The struct bio which describes the I/O as source iter iov_iter as destination DESCRIPTION Copy all pages from bio to iov_iter. Returns 0 on succes...
bio_crypt_clone(9)
NAME bio_crypt_clone - clone bio encryption context SYNOPSIS int bio_crypt_clone (struct bio *dst , struct bio *src , gfp_t gfp_mask ); ARGUMENTS dst destination bio src source bio gfp_mask memory allocation flags DESCRIPTION If src has an encryption context, clone it to dst. RETU...
bio_end_io_acct(9)
NAME bio_end_io_acct - end I/O accounting for bio based drivers SYNOPSIS void bio_end_io_acct (struct bio *bio , unsigned long start_time ); ARGUMENTS bio bio to end account for start_time start time returned by bio_start_io_acct SEE ALSO Kernel file ./include/linux/blkdev.h Kernel API(9), disk_ope...
bio_endio(9)
NAME bio_endio - end I/O on a bio SYNOPSIS void bio_endio (struct bio *bio ); ARGUMENTS bio bio DESCRIPTION bio_endio will end I/O on the whole bio. bio_endio is the preferred way to end I/O on a bio. No one should call bi_end_io directly on a bio unless they own it and thus know that it has an end_io func...
bio_for_each_folio_all(9)
NAME bio_for_each_folio_all - Iterate over each folio in a bio. SYNOPSIS bio_for_each_folio_all (fi , bio ); ARGUMENTS fi struct folio_iter which is updated for each folio. bio struct bio to iterate over. SEE ALSO Kernel file ./include/linux/bio.h bio_advance(9), struct folio_iter(9), bio_ne...
bio_full(9)
NAME bio_full - check if the bio is full SYNOPSIS bool bio_full (struct bio *bio , unsigned len ); ARGUMENTS bio bio to check len length of one segment to be added DESCRIPTION Return true if bio is full and one segment with len bytes can't be added to the bio, otherwise return false SEE ALSO...
bio_init_clone(9)
NAME bio_init_clone - clone a bio that shares the original bio's biovec SYNOPSIS int bio_init_clone (struct block_device *bdev , struct bio *bio , struct bio *bio_src , gfp_t gfp ); ARGUMENTS bdev block_device to clone onto bio bio to clone into bio_src bio to clone from gfp...
bio_integrity_add_page(9)
NAME bio_integrity_add_page - Attach integrity metadata SYNOPSIS int bio_integrity_add_page (struct bio *bio , struct page *page , unsigned int len , unsigned int offset ); ARGUMENTS bio bio to update page page containing integrity metadata len number of bytes of integrity metad...
bio_integrity_advance(9)
NAME bio_integrity_advance - Advance integrity vector SYNOPSIS void bio_integrity_advance (struct bio *bio , unsigned int bytes_done ); ARGUMENTS bio bio whose integrity vector to update bytes_done number of data bytes that have been completed DESCRIPTION This function calculates how many integrity ...
bio_integrity_alloc(9)
NAME bio_integrity_alloc - Allocate integrity payload and attach it to bio SYNOPSIS struct bio_integrity_payload * bio_integrity_alloc (struct bio *bio , gfp_t gfp_mask , unsigned int nr_vecs ); ARGUMENTS bio bio to attach integrity metadata to gfp_mask Memory allocation mask nr_vecs Nu...
bio_integrity_clone(9)
NAME bio_integrity_clone - Callback for cloning bios with integrity metadata SYNOPSIS int bio_integrity_clone (struct bio *bio , struct bio *bio_src , gfp_t gfp_mask ); ARGUMENTS bio New bio bio_src Original bio gfp_mask Memory allocation mask DESCRIPTION Called to allocate a bip when ...
bio_integrity_free(9)
NAME bio_integrity_free - Free bio integrity payload SYNOPSIS void bio_integrity_free (struct bio *bio ); ARGUMENTS bio bio containing bip to be freed DESCRIPTION Free the integrity portion of a bio. SEE ALSO Kernel file ./block/bio-integrity.c bio_integrity_alloc(9), bio_integrity_unmap_user(9), bio_integr...
bio_integrity_intervals(9)
NAME bio_integrity_intervals - Return number of integrity intervals for a bio SYNOPSIS unsigned int bio_integrity_intervals (struct blk_integrity *bi , unsigned int sectors ); ARGUMENTS bi blk_integrity profile for device sectors Size of the bio in 512-byte sectors DESCRIPTION The block layer ...
bio_integrity_prep(9)
NAME bio_integrity_prep - Prepare bio for integrity I/O SYNOPSIS bool bio_integrity_prep (struct bio *bio ); ARGUMENTS bio bio to prepare DESCRIPTION Checks if the bio already has an integrity payload attached. If it does, the payload has been generated by another kernel subsystem, and we just pass it thro...
bio_integrity_trim(9)
NAME bio_integrity_trim - Trim integrity vector SYNOPSIS void bio_integrity_trim (struct bio *bio ); ARGUMENTS bio bio whose integrity vector to update DESCRIPTION Used to trim the integrity vector in a cloned bio. SEE ALSO Kernel file ./block/bio-integrity.c bio_integrity_free(9), bio_integrity_alloc(9), b...
bio_integrity_unmap_user(9)
NAME bio_integrity_unmap_user - Unmap user integrity payload SYNOPSIS void bio_integrity_unmap_user (struct bio *bio ); ARGUMENTS bio bio containing bip to be unmapped DESCRIPTION Unmap the user mapped integrity portion of a bio. SEE ALSO Kernel file ./block/bio-integrity.c bio_integrity_free(9), bio_integr...
bio_iov_bounce_nr_vecs(9)
NAME bio_iov_bounce_nr_vecs - calculate number of bvecs for a bounce bio SYNOPSIS unsigned short bio_iov_bounce_nr_vecs (struct iov_iter *iter , blk_opf_t op ); ARGUMENTS iter iter to bounce from op REQ_OP_* for the bio DESCRIPTION Calculates how many bvecs are needed for the next bio to boun...
bio_iov_iter_bounce(9)
NAME bio_iov_iter_bounce - bounce buffer data from an iter into a bio SYNOPSIS int bio_iov_iter_bounce (struct bio *bio , struct iov_iter *iter ); ARGUMENTS bio bio to send iter iter to read from / write into DESCRIPTION Helper for direct I/O implementations that need to bounce buffer be...
bio_iov_iter_get_pages(9)
NAME bio_iov_iter_get_pages - add user or kernel pages to a bio SYNOPSIS int bio_iov_iter_get_pages (struct bio *bio , struct iov_iter *iter , unsigned len_align_mask ); ARGUMENTS bio bio to add pages to iter iov iterator describing the region to be added len_align_mask ...
bio_iov_iter_unbounce(9)
NAME bio_iov_iter_unbounce - finish a bounce buffer operation SYNOPSIS void bio_iov_iter_unbounce (struct bio *bio , bool is_error , bool mark_dirty ); ARGUMENTS bio completed bio is_error true if an I/O error occurred and data should not be copied mark_dirty If true, folios will be marked...
bio_is_zone_append(9)
NAME bio_is_zone_append - is this a zone append bio? SYNOPSIS bool bio_is_zone_append (struct bio *bio ); ARGUMENTS bio bio to check DESCRIPTION Check if bio is a zone append operation. Core block layer code and end_io handlers must use this instead of an open coded REQ_OP_ZONE_APPEND check because the bloc...
bio_issue_as_root_blkg(9)
NAME bio_issue_as_root_blkg - see if this bio needs to be issued as root blkg SYNOPSIS bool bio_issue_as_root_blkg (struct bio *bio ); ARGUMENTS bio the target bio RETURN true if this bio needs to be submitted with the root blkg context. DESCRIPTION In order to avoid priority inversions we sometimes need to...
bio_kmalloc(9)
NAME bio_kmalloc - kmalloc a bio SYNOPSIS struct bio * bio_kmalloc (unsigned short nr_vecs , gfp_t gfp_mask ); ARGUMENTS nr_vecs number of bio_vecs to allocate gfp_mask the GFP_* mask given to the slab allocator DESCRIPTION Use kmalloc to allocate a bio (including bvecs). The bio must be initializ...
bio_needs_zone_write_plugging(9)
NAME bio_needs_zone_write_plugging - Check if a BIO needs to be handled with zone write plugging SYNOPSIS bool bio_needs_zone_write_plugging (struct bio *bio ); ARGUMENTS bio The BIO being submitted DESCRIPTION Return true whenever bio execution needs to be handled through zone write plugging (using blk_zone...
bio_next_split(9)
NAME bio_next_split - get next @sectors from a bio, splitting if necessary SYNOPSIS struct bio * bio_next_split (struct bio *bio , int sectors , gfp_t gfp , struct bio_set *bs ); ARGUMENTS bio bio to split sectors number of sectors to split from the front of bio gfp gfp mask ...
bio_poll(9)
NAME bio_poll - poll for BIO completions SYNOPSIS int bio_poll (struct bio *bio , struct io_comp_batch *iob , unsigned int flags ); ARGUMENTS bio bio to poll for iob batches of IO flags BLK_POLL_* flags that control the behavior DESCRIPTION Poll for completions on queue associat...
bio_put(9)
NAME bio_put - release a reference to a bio SYNOPSIS void bio_put (struct bio *bio ); ARGUMENTS bio bio to release reference to DESCRIPTION Put a reference to a struct bio, either one you have gotten with bio_alloc, bio_get or bio_clone_*. The last put of a bio will free it. SEE ALSO Kernel file ./block/b...
bio_reset(9)
NAME bio_reset - reinitialize a bio SYNOPSIS void bio_reset (struct bio *bio , struct block_device *bdev , blk_opf_t opf ); ARGUMENTS bio bio to reset bdev block device to use the bio for opf operation and flags for bio DESCRIPTION After calling bio_reset, bio will be in the...
bio_reuse(9)
NAME bio_reuse - reuse a bio with the payload left intact SYNOPSIS void bio_reuse (struct bio *bio , blk_opf_t opf ); ARGUMENTS bio bio to reuse opf operation and flags for the next I/O DESCRIPTION Allow reusing an existing bio for another operation with all set up fields including the payloa...
bio_split(9)
NAME bio_split - split a bio SYNOPSIS struct bio * bio_split (struct bio *bio , int sectors , gfp_t gfp , struct bio_set *bs ); ARGUMENTS bio bio to split sectors number of sectors to split from the front of bio gfp gfp mask bs bio set to allocate from DESCRIPTION...
bio_split_io_at(9)
NAME bio_split_io_at - check if and where to split a bio SYNOPSIS int bio_split_io_at (struct bio *bio , const struct queue_limits *lim , unsigned *segs , unsigned max_bytes , unsigned len_align_mask ); ARGUMENTS bio [in] bio to be split lim [in] queue limits to split based on segs ...
bio_split_to_limits(9)
NAME bio_split_to_limits - split a bio to fit the queue limits SYNOPSIS struct bio * bio_split_to_limits (struct bio *bio ); ARGUMENTS bio bio to be split DESCRIPTION Check if bio needs splitting based on the queue limits of bio->bi_bdev, and if so split off a bio fitting the limits from the beginning of bio...
bio_start_io_acct(9)
NAME bio_start_io_acct - start I/O accounting for bio based drivers SYNOPSIS unsigned long bio_start_io_acct (struct bio *bio ); ARGUMENTS bio bio to start account for DESCRIPTION Returns the start time that should be passed back to bio_end_io_acct. SEE ALSO Kernel file ./block/blk-core.c blk_queue_flag_...
bio_trim(9)
NAME bio_trim - trim a bio SYNOPSIS void bio_trim (struct bio *bio , sector_t offset , sector_t size ); ARGUMENTS bio bio to trim offset number of sectors to trim from the front of bio size size we want to trim bio to, in sectors DESCRIPTION This function is typically used for bio...