id stringlengths 4 63 | text stringlengths 153 8.81M |
|---|---|
ubi_wl_put_peb(9) | NAME ubi_wl_put_peb - return a PEB to the wear-leveling sub-system.
SYNOPSIS int ubi_wl_put_peb (struct ubi_device *ubi , int vol_id , int lnum , int pnum , int torture );
ARGUMENTS ubi UBI device description object
vol_id the volume ID that last used this PEB
lnum the last used lo... |
ubi_wl_scrub_peb(9) | NAME ubi_wl_scrub_peb - schedule a physical eraseblock for scrubbing.
SYNOPSIS int ubi_wl_scrub_peb (struct ubi_device *ubi , int pnum );
ARGUMENTS ubi UBI device description object
pnum the physical eraseblock to schedule
DESCRIPTION If a bit-flip in a physical eraseblock is detected, this p... |
ubi_write_fastmap(9) | NAME ubi_write_fastmap - writes a fastmap.
SYNOPSIS int ubi_write_fastmap (struct ubi_device *ubi , struct ubi_fastmap_layout *new_fm );
ARGUMENTS ubi UBI device object
new_fm the to be written fastmap
DESCRIPTION Returns 0 on success, < 0 indicates an internal error.
SEE ALSO Kernel file ./d... |
ubifs_add_bud(9) | NAME ubifs_add_bud - add bud LEB to the tree of buds and its journal head list.
SYNOPSIS void ubifs_add_bud (struct ubifs_info *c , struct ubifs_bud *bud );
ARGUMENTS c UBIFS file-system description object
bud the bud to add
SEE ALSO Kernel file ./fs/ubifs/log.c ubifs_search_bud(9), ubi... |
ubifs_add_bud_to_log(9) | NAME ubifs_add_bud_to_log - add a new bud to the log.
SYNOPSIS int ubifs_add_bud_to_log (struct ubifs_info *c , int jhead , int lnum , int offs );
ARGUMENTS c UBIFS file-system description object
jhead journal head the bud belongs to
lnum LEB number of the bud
offs ... |
ubifs_add_dirt(9) | NAME ubifs_add_dirt - add dirty space to LEB properties.
SYNOPSIS int ubifs_add_dirt (struct ubifs_info *c , int lnum , int dirty );
ARGUMENTS c the UBIFS file-system description object
lnum LEB to add dirty space for
dirty dirty space to add
DESCRIPTION This is a helper functi... |
ubifs_add_lpt_dirt(9) | NAME ubifs_add_lpt_dirt - add dirty space to LPT LEB properties.
SYNOPSIS void ubifs_add_lpt_dirt (struct ubifs_info *c , int lnum , int dirty );
ARGUMENTS c UBIFS file-system description object
lnum LEB number to which to add dirty space
dirty amount of dirty space to add
SEE ... |
ubifs_add_nnode_dirt(9) | NAME ubifs_add_nnode_dirt - add dirty space to LPT LEB properties.
SYNOPSIS void ubifs_add_nnode_dirt (struct ubifs_info *c , struct ubifs_nnode *nnode );
ARGUMENTS c UBIFS file-system description object
nnode nnode for which to add dirt
SEE ALSO Kernel file ./fs/ubifs/lpt.c do_calc_lpt_ge... |
ubifs_add_orphan(9) | NAME ubifs_add_orphan - add an orphan.
SYNOPSIS int ubifs_add_orphan (struct ubifs_info *c , ino_t inum );
ARGUMENTS c UBIFS file-system description object
inum orphan inode number
DESCRIPTION Add an orphan. This function is called when an inodes link count drops to zero.
SEE ALSO Kernel f... |
ubifs_add_snod(9) | NAME ubifs_add_snod - add a scanned node to LEB scanning information.
SYNOPSIS int ubifs_add_snod (const struct ubifs_info *c , struct ubifs_scan_leb *sleb , void *buf , int offs );
ARGUMENTS c UBIFS file-system description object
sleb scanning information
buf buffer containin... |
ubifs_add_to_cat(9) | NAME ubifs_add_to_cat - add LEB properties to a category list or heap.
SYNOPSIS void ubifs_add_to_cat (struct ubifs_info *c , struct ubifs_lprops *lprops , int cat );
ARGUMENTS c UBIFS file-system description object
lprops LEB properties to add
cat LEB category to which to add
... |
ubifs_auth_node_sz(9) | NAME ubifs_auth_node_sz - returns the size of an authentication node
SYNOPSIS int ubifs_auth_node_sz (const struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function returns the size of an authentication node which can be 0 for unauthenticated filesystems or the rea... |
ubifs_bad_hash(9) | NAME ubifs_bad_hash - Report hash mismatches
SYNOPSIS void ubifs_bad_hash (const struct ubifs_info *c , const void *node , const u8 *hash , int lnum , int offs );
ARGUMENTS c UBIFS file-system description object
node the node
hash the expected hash
lnum the LEB n... |
ubifs_bg_thread(9) | NAME ubifs_bg_thread - UBIFS background thread function.
SYNOPSIS int ubifs_bg_thread (void *info );
ARGUMENTS info points to the file-system description object
DESCRIPTION This function implements various file-system background activities: o when a write-buffer timer expires it synchronizes the appropriat... |
ubifs_bg_wbufs_sync(9) | NAME ubifs_bg_wbufs_sync - synchronize write-buffers.
SYNOPSIS int ubifs_bg_wbufs_sync (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function is called by background thread to synchronize write-buffers. Returns zero in case of success and a negative error code ... |
ubifs_branch_hash(9) | NAME ubifs_branch_hash - returns a pointer to the hash of a branch
SYNOPSIS u8 * ubifs_branch_hash (struct ubifs_info *c , struct ubifs_branch *br );
ARGUMENTS c UBIFS file-system description object
br branch to get the hash from
DESCRIPTION This returns a pointer to the hash of a branch. ... |
ubifs_budget_space(9) | NAME ubifs_budget_space - ensure there is enough space to complete an operation.
SYNOPSIS int ubifs_budget_space (struct ubifs_info *c , struct ubifs_budget_req *req );
ARGUMENTS c UBIFS file-system description object
req budget request
DESCRIPTION This function allocates budget for an ... |
ubifs_bulk_read(9) | NAME ubifs_bulk_read - determine whether to bulk-read and, if so, do it.
SYNOPSIS int ubifs_bulk_read (struct folio *folio );
ARGUMENTS folio folio from which to start bulk-read.
DESCRIPTION Some flash media are capable of reading sequentially at faster rates. UBIFS bulk-read facility is designed to take adva... |
ubifs_calc_available(9) | NAME ubifs_calc_available - calculate available FS space.
SYNOPSIS long long ubifs_calc_available (const struct ubifs_info *c , int min_idx_lebs );
ARGUMENTS c UBIFS file-system description object
min_idx_lebs
minimum number of LEBs reserved for the index
DESCRIPTION This functio... |
ubifs_calc_dark(9) | NAME ubifs_calc_dark - calculate LEB dark space size.
SYNOPSIS int ubifs_calc_dark (const struct ubifs_info *c , int spc );
ARGUMENTS c the UBIFS file-system description object
spc amount of free and dirty space in the LEB
DESCRIPTION This function calculates and returns amount of dark spa... |
ubifs_calc_lpt_geom(9) | NAME ubifs_calc_lpt_geom - calculate and check sizes for the LPT area.
SYNOPSIS int ubifs_calc_lpt_geom (struct ubifs_info *c );
ARGUMENTS c the UBIFS file-system description object
DESCRIPTION This function returns 0 on success and a negative error code on failure.
SEE ALSO Kernel file ./fs/ubifs/lpt.c... |
ubifs_calc_min_idx_lebs(9) | NAME ubifs_calc_min_idx_lebs - calculate amount of LEBs for the index.
SYNOPSIS int ubifs_calc_min_idx_lebs (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function calculates and returns the number of LEBs which should be kept for index usage.
SEE ALSO Kernel fi... |
ubifs_categorize_lprops(9) | NAME ubifs_categorize_lprops - categorize LEB properties.
SYNOPSIS int ubifs_categorize_lprops (const struct ubifs_info *c , const struct ubifs_lprops *lprops );
ARGUMENTS c UBIFS file-system description object
lprops LEB properties to categorize
DESCRIPTION LEB properties are categorized to e... |
ubifs_change_lp(9) | NAME ubifs_change_lp - change LEB properties.
SYNOPSIS const struct ubifs_lprops * ubifs_change_lp (struct ubifs_info *c , const struct ubifs_lprops *lp , int free , int dirty , int flags , int idx_gc_cnt );
ARGUMENTS c the UBIFS file-system description object
lp LEB properties to change
... |
ubifs_change_one_lp(9) | NAME ubifs_change_one_lp - change LEB properties.
SYNOPSIS int ubifs_change_one_lp (struct ubifs_info *c , int lnum , int free , int dirty , int flags_set , int flags_clean , int idx_gc_cnt );
ARGUMENTS c the UBIFS file-system description object
lnum LEB to change properties for
free ... |
ubifs_check_dir_empty(9) | NAME ubifs_check_dir_empty - check if a directory is empty or not.
SYNOPSIS int ubifs_check_dir_empty (struct inode *dir );
ARGUMENTS dir VFS inode object of the directory to check
DESCRIPTION This function checks if directory dir is empty. Returns zero if the directory is empty, -ENOTEMPTY if it is not, and... |
ubifs_check_hash(9) | NAME ubifs_check_hash - compare two hashes
SYNOPSIS int ubifs_check_hash (const struct ubifs_info *c , const u8 *expected , const u8 *got );
ARGUMENTS c UBIFS file-system description object
expected first hash
got second hash
DESCRIPTION Compare two hashes expected and got. Retur... |
ubifs_check_hmac(9) | NAME ubifs_check_hmac - compare two HMACs
SYNOPSIS int ubifs_check_hmac (const struct ubifs_info *c , const u8 *expected , const u8 *got );
ARGUMENTS c UBIFS file-system description object
expected first HMAC
got second HMAC
DESCRIPTION Compare two hashes expected and got. Return... |
ubifs_check_node(9) | NAME ubifs_check_node - check node.
SYNOPSIS int ubifs_check_node (const struct ubifs_info *c , const void *buf , int len , int lnum , int offs , int quiet , int must_chk_crc );
ARGUMENTS c UBIFS file-system description object
buf node to check
len node length
lnum ... |
ubifs_clean_lebs(9) | NAME ubifs_clean_lebs - clean LEBs recovered during read-only mount.
SYNOPSIS int ubifs_clean_lebs (struct ubifs_info *c , void *sbuf );
ARGUMENTS c UBIFS file-system description object
sbuf LEB-sized buffer to use
DESCRIPTION This function cleans a LEB identified during recovery that nee... |
ubifs_clear_orphans(9) | NAME ubifs_clear_orphans - erase all LEBs used for orphans.
SYNOPSIS int ubifs_clear_orphans (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION If recovery is not required, then the orphans from the previous session are not needed. This function locates the LEBs used to r... |
ubifs_commit_required(9) | NAME ubifs_commit_required - set commit state to "required".
SYNOPSIS void ubifs_commit_required (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function is called if a commit is required but cannot be done from the calling function, so it is just flagged instead.... |
ubifs_compare_master_node(9) | NAME ubifs_compare_master_node - compare two UBIFS master nodes
SYNOPSIS int ubifs_compare_master_node (struct ubifs_info *c , void *m1 , void *m2 );
ARGUMENTS c UBIFS file-system description object
m1 the first node
m2 the second node
DESCRIPTION This function compares tw... |
ubifs_compr_name(9) | NAME ubifs_compr_name - get compressor name string by its type.
SYNOPSIS const char * ubifs_compr_name (struct ubifs_info *c , int compr_type );
ARGUMENTS c the UBIFS file-system description object
compr_type compressor type
DESCRIPTION This function returns compressor type string.
SEE ALSO Kerne... |
ubifs_compr_present(9) | NAME ubifs_compr_present - check if compressor was compiled in.
SYNOPSIS int ubifs_compr_present (struct ubifs_info *c , int compr_type );
ARGUMENTS c the UBIFS file-system description object
compr_type compressor type to check
DESCRIPTION This function returns 1 of compressor of type compr_type i... |
ubifs_compress(9) | NAME ubifs_compress - compress data.
SYNOPSIS void ubifs_compress (const struct ubifs_info *c , const void *in_buf , int in_len , void *out_buf , int *out_len , int *compr_type );
ARGUMENTS c UBIFS file-system description object
in_buf data to compress
in_len length of the data to ... |
ubifs_compress_folio(9) | NAME ubifs_compress_folio - compress folio.
SYNOPSIS void ubifs_compress_folio (const struct ubifs_info *c , struct folio *in_folio , size_t in_offset , int in_len , void *out_buf , int *out_len , int *compr_type );
ARGUMENTS c UBIFS file-system description object
in_folio data to compress
... |
ubifs_compressors_exit(9) | NAME ubifs_compressors_exit - de-initialize UBIFS compressors.
SYNOPSIS void ubifs_compressors_exit (void );
ARGUMENTS void no arguments
SEE ALSO Kernel file ./fs/ubifs/compress.c ubifs_compress(9), ubifs_compress_folio(9), ubifs_decompress(9), ubifs_decompress_folio(9), compr_init(9), compr_exit(9), ubifs_co... |
ubifs_compressors_init(9) | NAME ubifs_compressors_init - initialize UBIFS compressors.
SYNOPSIS int ubifs_compressors_init (void );
ARGUMENTS void no arguments
DESCRIPTION This function initializes the compressor which were compiled in. Returns zero in case of success and a negative error code in case of failure.
SEE ALSO Kernel file ... |
ubifs_consolidate_log(9) | NAME ubifs_consolidate_log - consolidate the log.
SYNOPSIS int ubifs_consolidate_log (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION Repeated failed commits could cause the log to be full, but at least 1 LEB is needed for commit. This function rewrites the reference ... |
ubifs_convert_page_budget(9) | NAME ubifs_convert_page_budget - convert budget of a new page.
SYNOPSIS void ubifs_convert_page_budget (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function converts budget which was allocated for a new page of data to the budget of changing an existing page of... |
ubifs_copy_hash(9) | NAME ubifs_copy_hash - copy a hash
SYNOPSIS void ubifs_copy_hash (const struct ubifs_info *c , const u8 *from , u8 *to );
ARGUMENTS c UBIFS file-system description object
from source hash
to destination hash
DESCRIPTION With authentication this copies a hash, otherwise does ... |
ubifs_create_dflt_lpt(9) | NAME ubifs_create_dflt_lpt - create default LPT.
SYNOPSIS int ubifs_create_dflt_lpt (struct ubifs_info *c , int *main_lebs , int lpt_first , int *lpt_lebs , int *big_lpt , u8 *hash );
ARGUMENTS c UBIFS file-system description object
main_lebs number of main area LEBs is passed and returned here
... |
ubifs_debugging_exit(9) | NAME ubifs_debugging_exit - free debugging data.
SYNOPSIS void ubifs_debugging_exit (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
SEE ALSO Kernel file ./fs/ubifs/debug.c ubifs_dump_index(9), dbg_save_space_info(9), dbg_check_space_info(9), dbg_check_synced_i_size(9), d... |
ubifs_debugging_init(9) | NAME ubifs_debugging_init - initialize UBIFS debugging.
SYNOPSIS int ubifs_debugging_init (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function initializes debugging-related data for the file system. Returns zero in case of success and a negative error code in... |
ubifs_decompress(9) | NAME ubifs_decompress - decompress data.
SYNOPSIS int ubifs_decompress (const struct ubifs_info *c , const void *in_buf , int in_len , void *out_buf , int *out_len , int compr_type );
ARGUMENTS c UBIFS file-system description object
in_buf data to decompress
in_len length of the da... |
ubifs_decompress_folio(9) | NAME ubifs_decompress_folio - decompress folio.
SYNOPSIS int ubifs_decompress_folio (const struct ubifs_info *c , const void *in_buf , int in_len , struct folio *out_folio , size_t out_offset , int *out_len , int compr_type );
ARGUMENTS c UBIFS file-system description object
in_buf data to deco... |
ubifs_delete_orphan(9) | NAME ubifs_delete_orphan - delete an orphan.
SYNOPSIS void ubifs_delete_orphan (struct ubifs_info *c , ino_t inum );
ARGUMENTS c UBIFS file-system description object
inum orphan inode number
DESCRIPTION Delete an orphan. This function is called when an inode is deleted.
SEE ALSO Kernel fil... |
ubifs_destroy_idx_gc(9) | NAME ubifs_destroy_idx_gc - destroy idx_gc list.
SYNOPSIS void ubifs_destroy_idx_gc (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function destroys the c->idx_gc list. It is called when unmounting so locks are not needed. Returns zero in case of success and a ne... |
ubifs_destroy_size_tree(9) | NAME ubifs_destroy_size_tree - free resources related to the size tree.
SYNOPSIS void ubifs_destroy_size_tree (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
SEE ALSO Kernel file ./fs/ubifs/recovery.c is_empty(9), first_non_ff(9), get_master_node(9), write_rcvrd_mst_node(9), ubi... |
ubifs_destroy_tnc_subtree(9) | NAME ubifs_destroy_tnc_subtree - destroy all znodes connected to a subtree.
SYNOPSIS long ubifs_destroy_tnc_subtree (const struct ubifs_info *c , struct ubifs_znode *znode );
ARGUMENTS c UBIFS file-system description object
znode znode defining subtree to destroy
DESCRIPTION This function des... |
ubifs_destroy_tnc_tree(9) | NAME ubifs_destroy_tnc_tree - destroy all znodes connected to the TNC tree.
SYNOPSIS void ubifs_destroy_tnc_tree (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function destroys the whole TNC tree and updates clean global znode count.
SEE ALSO Kernel file ./fs... |
ubifs_dirty_idx_node(9) | NAME ubifs_dirty_idx_node - dirty an index node.
SYNOPSIS int ubifs_dirty_idx_node (struct ubifs_info *c , union ubifs_key *key , int level , int lnum , int offs );
ARGUMENTS c UBIFS file-system description object
key index node key
level index node level
lnum in... |
ubifs_do_bulk_read(9) | NAME ubifs_do_bulk_read - do bulk-read.
SYNOPSIS int ubifs_do_bulk_read (struct ubifs_info *c , struct bu_info *bu , struct folio *folio1 );
ARGUMENTS c UBIFS file-system description object
bu bulk-read information
folio1 first folio to read
RETURN 1 if the bulk-read is done, ... |
ubifs_dump_index(9) | NAME ubifs_dump_index - dump the on-flash index.
SYNOPSIS void ubifs_dump_index (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function dumps whole UBIFS indexing B-tree, unlike 'ubifs_dump_tnc' which dumps only in-memory znodes and does not read znodes which fro... |
ubifs_dump_lpt_lebs(9) | NAME ubifs_dump_lpt_lebs - dump LPT lebs.
SYNOPSIS void ubifs_dump_lpt_lebs (const struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function dumps all LPT LEBs. The caller has to make sure the LPT is locked.
SEE ALSO Kernel file ./fs/ubifs/lpt_commit.c first_dirty_... |
ubifs_encode_dev(9) | NAME ubifs_encode_dev - encode device node IDs.
SYNOPSIS int ubifs_encode_dev (union ubifs_dev_desc *dev , dev_t rdev );
ARGUMENTS dev UBIFS device node information
rdev device IDs to encode
DESCRIPTION This is a helper function which encodes major/minor numbers of a device node into UBIFS dev... |
ubifs_encrypt(9) | NAME ubifs_encrypt - Encrypt data.
SYNOPSIS int ubifs_encrypt (const struct inode *inode , struct ubifs_data_node *dn , unsigned int in_len , unsigned int *out_len , int block );
ARGUMENTS inode inode which refers to the data node
dn data node to encrypt
in_len length of data to be... |
ubifs_end_scan(9) | NAME ubifs_end_scan - update LEB scanning information at end of scan.
SYNOPSIS void ubifs_end_scan (const struct ubifs_info *c , struct ubifs_scan_leb *sleb , int lnum , int offs );
ARGUMENTS c UBIFS file-system description object
sleb scanning information
lnum logical eraseblo... |
ubifs_ensure_cat(9) | NAME ubifs_ensure_cat - ensure LEB properties are categorized.
SYNOPSIS void ubifs_ensure_cat (struct ubifs_info *c , struct ubifs_lprops *lprops );
ARGUMENTS c UBIFS file-system description object
lprops LEB properties
DESCRIPTION A LEB may have fallen off of the bottom of a heap, and ended u... |
ubifs_fast_find_empty(9) | NAME ubifs_fast_find_empty - try to find an empty LEB quickly.
SYNOPSIS const struct ubifs_lprops * ubifs_fast_find_empty (struct ubifs_info *c );
ARGUMENTS c the UBIFS file-system description object
DESCRIPTION This function returns LEB properties for an empty LEB or NULL if the function is unable to find... |
ubifs_fast_find_frdi_idx(9) | NAME ubifs_fast_find_frdi_idx - try to find a freeable index LEB quickly.
SYNOPSIS const struct ubifs_lprops * ubifs_fast_find_frdi_idx (struct ubifs_info *c );
ARGUMENTS c the UBIFS file-system description object
DESCRIPTION This function returns LEB properties for a freeable index LEB or NULL if the func... |
ubifs_fast_find_free(9) | NAME ubifs_fast_find_free - try to find a LEB with free space quickly.
SYNOPSIS const struct ubifs_lprops * ubifs_fast_find_free (struct ubifs_info *c );
ARGUMENTS c the UBIFS file-system description object
DESCRIPTION This function returns LEB properties for a LEB with free space or NULL if the function i... |
ubifs_fast_find_freeable(9) | NAME ubifs_fast_find_freeable - try to find a freeable LEB quickly.
SYNOPSIS const struct ubifs_lprops * ubifs_fast_find_freeable (struct ubifs_info *c );
ARGUMENTS c the UBIFS file-system description object
DESCRIPTION This function returns LEB properties for a freeable LEB or NULL if the function is unab... |
ubifs_find_dirty_idx_leb(9) | NAME ubifs_find_dirty_idx_leb - try to find dirtiest index LEB as at last commit.
SYNOPSIS int ubifs_find_dirty_idx_leb (struct ubifs_info *c );
ARGUMENTS c the UBIFS file-system description object
DESCRIPTION This function attempts to find an untaken index LEB with the most free and dirty space that can b... |
ubifs_find_dirty_leb(9) | NAME ubifs_find_dirty_leb - find a dirty LEB for the Garbage Collector.
SYNOPSIS int ubifs_find_dirty_leb (struct ubifs_info *c , struct ubifs_lprops *ret_lp , int min_space , int pick_free );
ARGUMENTS c the UBIFS file-system description object
ret_lp LEB properties are returned here on exit
... |
ubifs_find_free_leb_for_idx(9) | NAME ubifs_find_free_leb_for_idx - find a free LEB for the index.
SYNOPSIS int ubifs_find_free_leb_for_idx (struct ubifs_info *c );
ARGUMENTS c the UBIFS file-system description object
DESCRIPTION This function looks for a free LEB and returns that LEB number. The returned LEB is marked as "taken", "inde... |
ubifs_find_free_space(9) | NAME ubifs_find_free_space - find a data LEB with free space.
SYNOPSIS int ubifs_find_free_space (struct ubifs_info *c , int min_space , int *offs , int squeeze );
ARGUMENTS c the UBIFS file-system description object
min_space minimum amount of required free space
offs contains offs... |
ubifs_fixup_free_space(9) | NAME ubifs_fixup_free_space - find & fix all LEBs with free space.
SYNOPSIS int ubifs_fixup_free_space (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function fixes up LEBs containing free space on first mount, if the appropriate flag was set when the FS was cr... |
ubifs_garbage_collect(9) | NAME ubifs_garbage_collect - UBIFS garbage collector.
SYNOPSIS int ubifs_garbage_collect (struct ubifs_info *c , int anyway );
ARGUMENTS c UBIFS file-system description object
anyway do GC even if there are free LEBs
DESCRIPTION This function does out-of-place garbage collection. The retu... |
ubifs_garbage_collect_leb(9) | NAME ubifs_garbage_collect_leb - garbage-collect a logical eraseblock.
SYNOPSIS int ubifs_garbage_collect_leb (struct ubifs_info *c , struct ubifs_lprops *lp );
ARGUMENTS c UBIFS file-system description object
lp describes the LEB to garbage collect
DESCRIPTION This function garbage-collec... |
ubifs_gc_end_commit(9) | NAME ubifs_gc_end_commit - garbage collection at end of commit.
SYNOPSIS int ubifs_gc_end_commit (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function completes out-of-place garbage collection of index LEBs.
SEE ALSO Kernel file ./fs/ubifs/gc.c switch_gc_hea... |
ubifs_gc_should_commit(9) | NAME ubifs_gc_should_commit - determine if it is time for GC to run commit.
SYNOPSIS int ubifs_gc_should_commit (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function is called by garbage collection to determine if commit should be run. If commit state is COMMI... |
ubifs_gc_start_commit(9) | NAME ubifs_gc_start_commit - garbage collection at start of commit.
SYNOPSIS int ubifs_gc_start_commit (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION If a LEB has only dirty and free space, then we may safely unmap it and make it free. Note, we cannot do this wit... |
ubifs_get_free_space(9) | NAME ubifs_get_free_space - return amount of free space.
SYNOPSIS long long ubifs_get_free_space (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function calculates and returns amount of free space to report to user-space.
SEE ALSO Kernel file ./fs/ubifs/budge... |
ubifs_get_free_space_nolock(9) | NAME ubifs_get_free_space_nolock - return amount of free space.
SYNOPSIS long long ubifs_get_free_space_nolock (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function calculates amount of free space to report to user-space. Because UBIFS may introduce substanti... |
ubifs_get_idx_gc_leb(9) | NAME ubifs_get_idx_gc_leb - get a LEB from GC'd index LEB list.
SYNOPSIS int ubifs_get_idx_gc_leb (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION Called during start commit so locks are not needed.
SEE ALSO Kernel file ./fs/ubifs/gc.c switch_gc_head(9), data_node... |
ubifs_get_lp_stats(9) | NAME ubifs_get_lp_stats - get lprops statistics.
SYNOPSIS void ubifs_get_lp_stats (struct ubifs_info *c , struct ubifs_lp_stats *lst );
ARGUMENTS c UBIFS file-system description object
lst return statistics
SEE ALSO Kernel file ./fs/ubifs/lprops.c get_heap_comp_val(9), move_up_lpt_heap(... |
ubifs_get_lprops(9) | NAME ubifs_get_lprops - get reference to LEB properties.
SYNOPSIS void ubifs_get_lprops (struct ubifs_info *c );
ARGUMENTS c the UBIFS file-system description object
DESCRIPTION This function locks lprops. Lprops have to be unlocked by
SEE ALSO Kernel file ./fs/ubifs/misc.h ubifs_zn_dirty(9), ubifs_zn... |
ubifs_get_nnode(9) | NAME ubifs_get_nnode - get a nnode.
SYNOPSIS struct ubifs_nnode * ubifs_get_nnode (struct ubifs_info *c , struct ubifs_nnode *parent , int iip );
ARGUMENTS c UBIFS file-system description object
parent parent nnode (or NULL for the root)
iip index in parent
DESCRIPTION This fun... |
ubifs_get_pnode(9) | NAME ubifs_get_pnode - get a pnode.
SYNOPSIS struct ubifs_pnode * ubifs_get_pnode (struct ubifs_info *c , struct ubifs_nnode *parent , int iip );
ARGUMENTS c UBIFS file-system description object
parent parent nnode
iip index in parent
DESCRIPTION This function returns a pointer... |
ubifs_get_wbuf(9) | NAME ubifs_get_wbuf - get the wbuf associated with a LEB, if there is one.
SYNOPSIS struct ubifs_wbuf * ubifs_get_wbuf (struct ubifs_info *c , int lnum );
ARGUMENTS c UBIFS file-system description object
lnum logical eraseblock number to search
DESCRIPTION This functions returns the wbuf for... |
ubifs_hash_calc_hmac(9) | NAME ubifs_hash_calc_hmac - calculate a HMAC from a hash
SYNOPSIS int ubifs_hash_calc_hmac (const struct ubifs_info *c , const u8 *hash , u8 *hmac );
ARGUMENTS c UBIFS file-system description object
hash the node to calculate a HMAC for
hmac the returned HMAC
DESCRIPTION Retur... |
ubifs_hmac_wkm(9) | NAME ubifs_hmac_wkm - Create a HMAC of the well known message
SYNOPSIS int ubifs_hmac_wkm (struct ubifs_info *c , u8 *hmac );
ARGUMENTS c UBIFS file-system description object
hmac The HMAC of the well known message
DESCRIPTION This function creates a HMAC of a well known message. This is us... |
ubifs_idx_branch(9) | NAME ubifs_idx_branch - return pointer to an index branch.
SYNOPSIS struct ubifs_branch * ubifs_idx_branch (const struct ubifs_info *c , const struct ubifs_idx_node *idx , int bnum );
ARGUMENTS c the UBIFS file-system description object
idx index node
bnum branch number
SEE A... |
ubifs_idx_key(9) | NAME ubifs_idx_key - return pointer to an index key.
SYNOPSIS void * ubifs_idx_key (const struct ubifs_info *c , const struct ubifs_idx_node *idx );
ARGUMENTS c the UBIFS file-system description object
idx index node
SEE ALSO Kernel file ./fs/ubifs/misc.h ubifs_zn_dirty(9), ubifs_zn_obs... |
ubifs_idx_node_sz(9) | NAME ubifs_idx_node_sz - return index node size.
SYNOPSIS int ubifs_idx_node_sz (const struct ubifs_info *c , int child_cnt );
ARGUMENTS c the UBIFS file-system description object
child_cnt number of children of this index node
SEE ALSO Kernel file ./fs/ubifs/misc.h ubifs_zn_dirty(9), ubifs_z... |
ubifs_init_authentication(9) | NAME ubifs_init_authentication - initialize UBIFS authentication support
SYNOPSIS int ubifs_init_authentication (struct ubifs_info *c );
ARGUMENTS c UBIFS file-system description object
DESCRIPTION This function returns 0 for success or a negative error code otherwise.
SEE ALSO Kernel file ./fs/ubifs/au... |
ubifs_inode(9) | NAME ubifs_inode - get UBIFS inode information by VFS 'struct inode' object.
SYNOPSIS struct ubifs_inode * ubifs_inode (const struct inode *inode );
ARGUMENTS inode the VFS 'struct inode' pointer
SEE ALSO Kernel file ./fs/ubifs/misc.h ubifs_zn_dirty(9), ubifs_zn_obsolete(9), ubifs_zn_cow(9), ubifs_wake_up_bgt... |
ubifs_jnl_change_xattr(9) | NAME ubifs_jnl_change_xattr - change an extended attribute.
SYNOPSIS int ubifs_jnl_change_xattr (struct ubifs_info *c , const struct inode *inode , const struct inode *host );
ARGUMENTS c UBIFS file-system description object
inode extended attribute inode
host host inode
DESCRI... |
ubifs_jnl_delete_inode(9) | NAME ubifs_jnl_delete_inode - delete an inode.
SYNOPSIS int ubifs_jnl_delete_inode (struct ubifs_info *c , const struct inode *inode );
ARGUMENTS c UBIFS file-system description object
inode inode to delete
DESCRIPTION This function deletes inode inode which includes removing it from orphan... |
ubifs_jnl_delete_xattr(9) | NAME ubifs_jnl_delete_xattr - delete an extended attribute.
SYNOPSIS int ubifs_jnl_delete_xattr (struct ubifs_info *c , const struct inode *host , const struct inode *inode , const struct fscrypt_name *nm );
ARGUMENTS c UBIFS file-system description object
host host inode
inode ... |
ubifs_jnl_rename(9) | NAME ubifs_jnl_rename - rename a directory entry.
SYNOPSIS int ubifs_jnl_rename (struct ubifs_info *c , const struct inode *old_dir , const struct inode *old_inode , const struct fscrypt_name *old_nm , const struct inode *new_dir , const struct inode *new_inode , const struct fscrypt_name *new_nm , const struct in... |
ubifs_jnl_truncate(9) | NAME ubifs_jnl_truncate - update the journal for a truncation.
SYNOPSIS int ubifs_jnl_truncate (struct ubifs_info *c , const struct inode *inode , loff_t old_size , loff_t new_size );
ARGUMENTS c UBIFS file-system description object
inode inode to truncate
old_size old size
... |
ubifs_jnl_update(9) | NAME ubifs_jnl_update - update inode.
SYNOPSIS int ubifs_jnl_update (struct ubifs_info *c , const struct inode *dir , const struct fscrypt_name *nm , const struct inode *inode , int deletion , int xent , int in_orphan );
ARGUMENTS c UBIFS file-system description object
dir parent inode or ho... |
ubifs_jnl_write_data(9) | NAME ubifs_jnl_write_data - write a data node to the journal.
SYNOPSIS int ubifs_jnl_write_data (struct ubifs_info *c , const struct inode *inode , const union ubifs_key *key , struct folio *folio , size_t offset , int len );
ARGUMENTS c UBIFS file-system description object
inode inode the dat... |
ubifs_jnl_write_inode(9) | NAME ubifs_jnl_write_inode - flush inode to the journal.
SYNOPSIS int ubifs_jnl_write_inode (struct ubifs_info *c , const struct inode *inode );
ARGUMENTS c UBIFS file-system description object
inode inode to flush
DESCRIPTION This function writes inode inode to the journal. If the inode is s... |
ubifs_jnl_xrename(9) | NAME ubifs_jnl_xrename - cross rename two directory entries.
SYNOPSIS int ubifs_jnl_xrename (struct ubifs_info *c , const struct inode *fst_dir , const struct inode *fst_inode , const struct fscrypt_name *fst_nm , const struct inode *snd_dir , const struct inode *snd_inode , const struct fscrypt_name *snd_nm , int ... |
ubifs_load_znode(9) | NAME ubifs_load_znode - load znode to TNC cache.
SYNOPSIS struct ubifs_znode * ubifs_load_znode (struct ubifs_info *c , struct ubifs_zbranch *zbr , struct ubifs_znode *parent , int iip );
ARGUMENTS c UBIFS file-system description object
zbr znode branch
parent znode's parent
... |
ubifs_log_end_commit(9) | NAME ubifs_log_end_commit - end commit.
SYNOPSIS int ubifs_log_end_commit (struct ubifs_info *c , int ltail_lnum );
ARGUMENTS c UBIFS file-system description object
ltail_lnum new log tail LEB number
DESCRIPTION This function is called on when the commit operation was finished. It moves log tail... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.