id
stringlengths
4
63
text
stringlengths
153
8.81M
ubi_detach_mtd_dev(9)
NAME ubi_detach_mtd_dev - detach an MTD device. SYNOPSIS int ubi_detach_mtd_dev (int ubi_num , int anyway ); ARGUMENTS ubi_num UBI device number to detach from anyway detach MTD even if device reference count is not zero DESCRIPTION This function destroys an UBI device number ubi_num and detaches ...
ubi_do_get_device_info(9)
NAME ubi_do_get_device_info - get information about UBI device. SYNOPSIS void ubi_do_get_device_info (struct ubi_device *ubi , struct ubi_device_info *di ); ARGUMENTS ubi UBI device description object di the information is stored here DESCRIPTION This function is the same as 'ubi_get_device_...
ubi_do_get_volume_info(9)
NAME ubi_do_get_volume_info - get information about UBI volume. SYNOPSIS void ubi_do_get_volume_info (struct ubi_device *ubi , struct ubi_volume *vol , struct ubi_volume_info *vi ); ARGUMENTS ubi UBI device description object vol volume description object vi the information is...
ubi_dump_aeb(9)
NAME ubi_dump_aeb - dump a &struct ubi_ainf_peb object. SYNOPSIS void ubi_dump_aeb (const struct ubi_ainf_peb *aeb , int type ); ARGUMENTS aeb the object to dump type object type: 0 - not corrupted, 1 - corrupted SEE ALSO Kernel file ./drivers/mtd/ubi/debug.c ubi_dump_flash(9), ubi_dump_ec...
ubi_dump_av(9)
NAME ubi_dump_av - dump a &struct ubi_ainf_volume object. SYNOPSIS void ubi_dump_av (const struct ubi_ainf_volume *av ); ARGUMENTS av the object to dump SEE ALSO Kernel file ./drivers/mtd/ubi/debug.c ubi_dump_flash(9), ubi_dump_ec_hdr(9), ubi_dump_vid_hdr(9), ubi_dump_vol_info(9), ubi_dump_vtbl_recor...
ubi_dump_ec_hdr(9)
NAME ubi_dump_ec_hdr - dump an erase counter header. SYNOPSIS void ubi_dump_ec_hdr (const struct ubi_ec_hdr *ec_hdr ); ARGUMENTS ec_hdr the erase counter header to dump SEE ALSO Kernel file ./drivers/mtd/ubi/debug.c ubi_dump_flash(9), ubi_dump_vid_hdr(9), ubi_dump_vol_info(9), ubi_dump_vtbl_record(9), u...
ubi_dump_flash(9)
NAME ubi_dump_flash - dump a region of flash. SYNOPSIS void ubi_dump_flash (struct ubi_device *ubi , int pnum , int offset , int len ); ARGUMENTS ubi UBI device description object pnum the physical eraseblock number to dump offset the starting offset within the physical eraseblock ...
ubi_dump_mkvol_req(9)
NAME ubi_dump_mkvol_req - dump a &struct ubi_mkvol_req object. SYNOPSIS void ubi_dump_mkvol_req (const struct ubi_mkvol_req *req ); ARGUMENTS req the object to dump SEE ALSO Kernel file ./drivers/mtd/ubi/debug.c ubi_dump_flash(9), ubi_dump_ec_hdr(9), ubi_dump_vid_hdr(9), ubi_dump_vol_info(9), ubi_dump_vtbl...
ubi_dump_vid_hdr(9)
NAME ubi_dump_vid_hdr - dump a volume identifier header. SYNOPSIS void ubi_dump_vid_hdr (const struct ubi_vid_hdr *vid_hdr ); ARGUMENTS vid_hdr the volume identifier header to dump SEE ALSO Kernel file ./drivers/mtd/ubi/debug.c ubi_dump_flash(9), ubi_dump_ec_hdr(9), ubi_dump_vol_info(9), ubi_dump_vtbl_record(9),...
ubi_dump_vol_info(9)
NAME ubi_dump_vol_info - dump volume information. SYNOPSIS void ubi_dump_vol_info (const struct ubi_volume *vol ); ARGUMENTS vol UBI volume description object SEE ALSO Kernel file ./drivers/mtd/ubi/debug.c ubi_dump_flash(9), ubi_dump_ec_hdr(9), ubi_dump_vid_hdr(9), ubi_dump_vtbl_record(9), ubi_dump_av...
ubi_dump_vtbl_record(9)
NAME ubi_dump_vtbl_record - dump a &struct ubi_vtbl_record object. SYNOPSIS void ubi_dump_vtbl_record (const struct ubi_vtbl_record *r , int idx ); ARGUMENTS r the object to dump idx volume table index SEE ALSO Kernel file ./drivers/mtd/ubi/debug.c ubi_dump_flash(9), ubi_dump_ec_hdr(9),...
ubi_early_get_peb(9)
NAME ubi_early_get_peb - get a free physical eraseblock. SYNOPSIS struct ubi_ainf_peb * ubi_early_get_peb (struct ubi_device *ubi , struct ubi_attach_info *ai ); ARGUMENTS ubi UBI device description object ai attaching information DESCRIPTION This function returns a free physical eraseblock...
ubi_eba_copy_leb(9)
NAME ubi_eba_copy_leb - copy logical eraseblock. SYNOPSIS int ubi_eba_copy_leb (struct ubi_device *ubi , int from , int to , struct ubi_vid_io_buf *vidb ); ARGUMENTS ubi UBI device description object from physical eraseblock number from where to copy to physical eraseblock numb...
ubi_eba_copy_table(9)
NAME ubi_eba_copy_table - copy the EBA table attached to vol into another table SYNOPSIS void ubi_eba_copy_table (struct ubi_volume *vol , struct ubi_eba_table *dst , int nentries ); ARGUMENTS vol volume containing the EBA table to copy dst destination nentries number of entries to ...
ubi_eba_create_table(9)
NAME ubi_eba_create_table - allocate a new EBA table and initialize it with all LEBs unmapped SYNOPSIS struct ubi_eba_table * ubi_eba_create_table (struct ubi_volume *vol , int nentries ); ARGUMENTS vol volume containing the EBA table to copy nentries number of entries in the table DESCRIPTION All...
ubi_eba_destroy_table(9)
NAME ubi_eba_destroy_table - destroy an EBA table SYNOPSIS void ubi_eba_destroy_table (struct ubi_eba_table *tbl ); ARGUMENTS tbl the table to destroy DESCRIPTION Destroy an EBA table. SEE ALSO Kernel file ./drivers/mtd/ubi/eba.c struct ubi_eba_entry(9), struct ubi_eba_table(9), ubi_next_sqnum(9), ubi_get...
ubi_eba_get_ldesc(9)
NAME ubi_eba_get_ldesc - get information about a LEB SYNOPSIS void ubi_eba_get_ldesc (struct ubi_volume *vol , int lnum , struct ubi_eba_leb_desc *ldesc ); ARGUMENTS vol volume description object lnum logical eraseblock number ldesc the LEB descriptor to fill DESCRIPTION Used to ...
ubi_eba_init(9)
NAME ubi_eba_init - initialize the EBA sub-system using attaching information. SYNOPSIS int ubi_eba_init (struct ubi_device *ubi , struct ubi_attach_info *ai ); ARGUMENTS ubi UBI device description object ai attaching information DESCRIPTION This function returns zero in case of success and ...
ubi_eba_is_mapped(9)
NAME ubi_eba_is_mapped - check if a LEB is mapped. SYNOPSIS bool ubi_eba_is_mapped (struct ubi_volume *vol , int lnum ); ARGUMENTS vol volume description object lnum logical eraseblock number DESCRIPTION This function returns true if the LEB is mapped, false otherwise. SEE ALSO Kernel file ...
ubi_eba_read_leb(9)
NAME ubi_eba_read_leb - read data. SYNOPSIS int ubi_eba_read_leb (struct ubi_device *ubi , struct ubi_volume *vol , int lnum , void *buf , int offset , int len , int check ); ARGUMENTS ubi UBI device description object vol volume description object lnum logical eraseblock number...
ubi_eba_read_leb_sg(9)
NAME ubi_eba_read_leb_sg - read data into a scatter gather list. SYNOPSIS int ubi_eba_read_leb_sg (struct ubi_device *ubi , struct ubi_volume *vol , struct ubi_sgl *sgl , int lnum , int offset , int len , int check ); ARGUMENTS ubi UBI device description object vol volume description object ...
ubi_eba_replace_table(9)
NAME ubi_eba_replace_table - assign a new EBA table to a volume SYNOPSIS void ubi_eba_replace_table (struct ubi_volume *vol , struct ubi_eba_table *tbl ); ARGUMENTS vol volume containing the EBA table to copy tbl new EBA table DESCRIPTION Assign a new EBA table to the volume and release the o...
ubi_eba_unmap_leb(9)
NAME ubi_eba_unmap_leb - un-map logical eraseblock. SYNOPSIS int ubi_eba_unmap_leb (struct ubi_device *ubi , struct ubi_volume *vol , int lnum ); ARGUMENTS ubi UBI device description object vol volume description object lnum logical eraseblock number DESCRIPTION This function u...
ubi_eba_write_leb(9)
NAME ubi_eba_write_leb - write data to dynamic volume. SYNOPSIS int ubi_eba_write_leb (struct ubi_device *ubi , struct ubi_volume *vol , int lnum , const void *buf , int offset , int len ); ARGUMENTS ubi UBI device description object vol volume description object lnum logical er...
ubi_eba_write_leb_st(9)
NAME ubi_eba_write_leb_st - write data to static volume. SYNOPSIS int ubi_eba_write_leb_st (struct ubi_device *ubi , struct ubi_volume *vol , int lnum , const void *buf , int len , int used_ebs ); ARGUMENTS ubi UBI device description object vol volume description object lnum log...
ubi_ensure_anchor_pebs(9)
NAME ubi_ensure_anchor_pebs - schedule wear-leveling to produce an anchor PEB. SYNOPSIS int ubi_ensure_anchor_pebs (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object SEE ALSO Kernel file ./drivers/mtd/ubi/fastmap-wl.c update_fastmap_work_fn(9), find_anchor_wl_entry(9), return_unused_...
ubi_enumerate_volumes(9)
NAME ubi_enumerate_volumes - send "add" notification for all existing volumes. SYNOPSIS int ubi_enumerate_volumes (struct notifier_block *nb ); ARGUMENTS nb the notifier to call DESCRIPTION This function walks all UBI devices and volumes and sends the UBI_VOLUME_ADDED notification for each volume. If nb is...
ubi_find_av(9)
NAME ubi_find_av - find volume in the attaching information. SYNOPSIS struct ubi_ainf_volume * ubi_find_av (const struct ubi_attach_info *ai , int vol_id ); ARGUMENTS ai attaching information vol_id the requested volume ID DESCRIPTION This function returns a pointer to the volume description or...
ubi_find_fm_block(9)
NAME ubi_find_fm_block - check whether a PEB is part of the current Fastmap. SYNOPSIS struct ubi_wl_entry * ubi_find_fm_block (const struct ubi_device *ubi , int pnum ); ARGUMENTS ubi UBI device description object pnum physical eraseblock to look for DESCRIPTION This function returns a wear le...
ubi_find_or_add_av(9)
NAME ubi_find_or_add_av - search for a volume in the attaching information and add one if it does not exist. SYNOPSIS struct ubi_ainf_volume * ubi_find_or_add_av (struct ubi_attach_info *ai , int vol_id , bool *created ); ARGUMENTS ai attaching information vol_id the requested volume ID ...
ubi_free_aeb(9)
NAME ubi_free_aeb - free an aeb element SYNOPSIS void ubi_free_aeb (struct ubi_attach_info *ai , struct ubi_ainf_peb *aeb ); ARGUMENTS ai attaching information aeb the element to free DESCRIPTION Free an aeb object. The caller must have removed the element from any list or RB tree. SEE ALSO...
ubi_free_all_volumes(9)
NAME ubi_free_all_volumes - free all volumes. SYNOPSIS void ubi_free_all_volumes (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object SEE ALSO Kernel file ./drivers/mtd/ubi/build.c struct mtd_dev_param(9), ubi_volume_notify(9), ubi_notify_all(9), ubi_enumerate_volumes(9), ubi_get_devic...
ubi_free_internal_volumes(9)
NAME ubi_free_internal_volumes - free internal volumes. SYNOPSIS void ubi_free_internal_volumes (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object SEE ALSO Kernel file ./drivers/mtd/ubi/build.c struct mtd_dev_param(9), ubi_volume_notify(9), ubi_notify_all(9), ubi_enumerate_volumes(9)...
ubi_free_vid_buf(9)
NAME ubi_free_vid_buf - Free a VID buffer SYNOPSIS void ubi_free_vid_buf (struct ubi_vid_io_buf *vidb ); ARGUMENTS vidb the VID buffer to free SEE ALSO Kernel file ./drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf(9), struct ubi_wl_entry(9), struct ubi_ltree_entry(9), struct ubi_rename_entry(9), struct ubi_fastma...
ubi_free_volume(9)
NAME ubi_free_volume - free volume. SYNOPSIS void ubi_free_volume (struct ubi_device *ubi , struct ubi_volume *vol ); ARGUMENTS ubi UBI device description object vol volume description object DESCRIPTION This function frees all resources for volume vol but does not remove it. Used only when ...
ubi_free_volumes_from(9)
NAME ubi_free_volumes_from - free volumes from specific index. SYNOPSIS void ubi_free_volumes_from (struct ubi_device *ubi , int from ); ARGUMENTS ubi UBI device description object from the start index used for volume free. SEE ALSO Kernel file ./drivers/mtd/ubi/build.c struct mtd_dev_para...
ubi_get_by_major(9)
NAME ubi_get_by_major - get UBI device by character device major number. SYNOPSIS struct ubi_device * ubi_get_by_major (int major ); ARGUMENTS major major number DESCRIPTION This function is similar to 'ubi_get_device', but it searches the device by its major number. SEE ALSO Kernel file ./drivers/mtd/ubi/b...
ubi_get_compat(9)
NAME ubi_get_compat - get compatibility flags of a volume. SYNOPSIS int ubi_get_compat (const struct ubi_device *ubi , int vol_id ); ARGUMENTS ubi UBI device description object vol_id volume ID DESCRIPTION This function returns compatibility flags for an internal volume. User volumes have no com...
ubi_get_device(9)
NAME ubi_get_device - get UBI device. SYNOPSIS struct ubi_device * ubi_get_device (int ubi_num ); ARGUMENTS ubi_num UBI device number DESCRIPTION This function returns UBI device description object for UBI device number ubi_num, or NULL if the device does not exist. This function increases the device reference c...
ubi_get_device_info(9)
NAME ubi_get_device_info - get information about UBI device. SYNOPSIS int ubi_get_device_info (int ubi_num , struct ubi_device_info *di ); ARGUMENTS ubi_num UBI device number di the information is stored here DESCRIPTION This function returns 0 in case of success, -EINVAL if the UBI device numbe...
ubi_get_num_by_path(9)
NAME ubi_get_num_by_path - get UBI device and volume number from device path SYNOPSIS int ubi_get_num_by_path (const char *pathname , int *ubi_num , int *vol_id ); ARGUMENTS pathname volume character device node path ubi_num pointer to UBI device number to be set vol_id pointer to UBI volu...
ubi_get_vid_hdr(9)
NAME ubi_get_vid_hdr - Get the VID header attached to a VID buffer SYNOPSIS struct ubi_vid_hdr * ubi_get_vid_hdr (struct ubi_vid_io_buf *vidb ); ARGUMENTS vidb VID buffer SEE ALSO Kernel file ./drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf(9), struct ubi_wl_entry(9), struct ubi_ltree_entry(9), struct ubi_rename...
ubi_get_volume_info(9)
NAME ubi_get_volume_info - get information about UBI volume. SYNOPSIS void ubi_get_volume_info (struct ubi_volume_desc *desc , struct ubi_volume_info *vi ); ARGUMENTS desc volume descriptor vi the information is stored here SEE ALSO Kernel file ./drivers/mtd/ubi/kapi.c ubi_do_get_device_info(...
ubi_init_vid_buf(9)
NAME ubi_init_vid_buf - Initialize a VID buffer SYNOPSIS void ubi_init_vid_buf (const struct ubi_device *ubi , struct ubi_vid_io_buf *vidb , void *buf ); ARGUMENTS ubi the UBI device vidb the VID buffer to initialize buf the underlying buffer SEE ALSO Kernel file ./drivers/mtd/...
ubi_io_is_bad(9)
NAME ubi_io_is_bad - check if a physical eraseblock is bad. SYNOPSIS int ubi_io_is_bad (const struct ubi_device *ubi , int pnum ); ARGUMENTS ubi UBI device description object pnum the physical eraseblock number to check DESCRIPTION This function returns a positive number if the physical eraseb...
ubi_io_mark_bad(9)
NAME ubi_io_mark_bad - mark a physical eraseblock as bad. SYNOPSIS int ubi_io_mark_bad (const struct ubi_device *ubi , int pnum ); ARGUMENTS ubi UBI device description object pnum the physical eraseblock number to mark DESCRIPTION This function returns zero in case of success and a negative er...
ubi_io_read(9)
NAME ubi_io_read - read data from a physical eraseblock. SYNOPSIS int ubi_io_read (const struct ubi_device *ubi , void *buf , int pnum , int offset , int len ); ARGUMENTS ubi UBI device description object buf buffer where to store the read data pnum physical eraseblock number to...
ubi_io_read_ec_hdr(9)
NAME ubi_io_read_ec_hdr - read and check an erase counter header. SYNOPSIS int ubi_io_read_ec_hdr (struct ubi_device *ubi , int pnum , struct ubi_ec_hdr *ec_hdr , int verbose ); ARGUMENTS ubi UBI device description object pnum physical eraseblock to read from ec_hdr a struct ubi_ec...
ubi_io_read_vid_hdr(9)
NAME ubi_io_read_vid_hdr - read and check a volume identifier header. SYNOPSIS int ubi_io_read_vid_hdr (struct ubi_device *ubi , int pnum , struct ubi_vid_io_buf *vidb , int verbose ); ARGUMENTS ubi UBI device description object pnum physical eraseblock number to read from vidb t...
ubi_io_sync_erase(9)
NAME ubi_io_sync_erase - synchronously erase a physical eraseblock. SYNOPSIS int ubi_io_sync_erase (struct ubi_device *ubi , int pnum , int torture ); ARGUMENTS ubi UBI device description object pnum physical eraseblock number to erase torture if this physical eraseblock has to be t...
ubi_io_write(9)
NAME ubi_io_write - write data to a physical eraseblock. SYNOPSIS int ubi_io_write (struct ubi_device *ubi , const void *buf , int pnum , int offset , int len ); ARGUMENTS ubi UBI device description object buf buffer with the data to write pnum physical eraseblock number to writ...
ubi_io_write_ec_hdr(9)
NAME ubi_io_write_ec_hdr - write an erase counter header. SYNOPSIS int ubi_io_write_ec_hdr (struct ubi_device *ubi , int pnum , struct ubi_ec_hdr *ec_hdr ); ARGUMENTS ubi UBI device description object pnum physical eraseblock to write to ec_hdr the erase counter header to write DE...
ubi_io_write_vid_hdr(9)
NAME ubi_io_write_vid_hdr - write a volume identifier header. SYNOPSIS int ubi_io_write_vid_hdr (struct ubi_device *ubi , int pnum , struct ubi_vid_io_buf *vidb ); ARGUMENTS ubi UBI device description object pnum the physical eraseblock number to write to vidb the volume identifi...
ubi_is_erase_work(9)
NAME ubi_is_erase_work - checks whether a work is erase work. SYNOPSIS int ubi_is_erase_work (struct ubi_work *wrk ); ARGUMENTS wrk The work object to be checked SEE ALSO Kernel file ./drivers/mtd/ubi/fastmap-wl.c update_fastmap_work_fn(9), find_anchor_wl_entry(9), return_unused_pool_pebs(9), ubi_wl_ge...
ubi_is_fm_vol(9)
NAME ubi_is_fm_vol - check whether a volume ID is a Fastmap volume. SYNOPSIS bool ubi_is_fm_vol (int vol_id ); ARGUMENTS vol_id volume ID SEE ALSO Kernel file ./drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf(9), struct ubi_wl_entry(9), struct ubi_ltree_entry(9), struct ubi_rename_entry(9), struct ubi_fastmap_layou...
ubi_is_mapped(9)
NAME ubi_is_mapped - check if logical eraseblock is mapped. SYNOPSIS int ubi_is_mapped (struct ubi_volume_desc *desc , int lnum ); ARGUMENTS desc volume descriptor lnum logical eraseblock number DESCRIPTION This function checks if logical eraseblock lnum is mapped to a physical eraseblock. If ...
ubi_leb_erase(9)
NAME ubi_leb_erase - erase logical eraseblock. SYNOPSIS int ubi_leb_erase (struct ubi_volume_desc *desc , int lnum ); ARGUMENTS desc volume descriptor lnum logical eraseblock number DESCRIPTION This function un-maps logical eraseblock lnum and synchronously erases the correspondent physical era...
ubi_leb_map(9)
NAME ubi_leb_map - map logical eraseblock to a physical eraseblock. SYNOPSIS int ubi_leb_map (struct ubi_volume_desc *desc , int lnum ); ARGUMENTS desc volume descriptor lnum logical eraseblock number DESCRIPTION This function maps an un-mapped logical eraseblock lnum to a physical eraseblock....
ubi_leb_read(9)
NAME ubi_leb_read - read data. SYNOPSIS int ubi_leb_read (struct ubi_volume_desc *desc , int lnum , char *buf , int offset , int len , int check ); ARGUMENTS desc volume descriptor lnum logical eraseblock number to read from buf buffer where to store the read data offset ...
ubi_leb_read_sg(9)
NAME ubi_leb_read_sg - read data into a scatter gather list. SYNOPSIS int ubi_leb_read_sg (struct ubi_volume_desc *desc , int lnum , struct ubi_sgl *sgl , int offset , int len , int check ); ARGUMENTS desc volume descriptor lnum logical eraseblock number to read from sgl UBI scat...
ubi_leb_unmap(9)
NAME ubi_leb_unmap - un-map logical eraseblock. SYNOPSIS int ubi_leb_unmap (struct ubi_volume_desc *desc , int lnum ); ARGUMENTS desc volume descriptor lnum logical eraseblock number DESCRIPTION This function un-maps logical eraseblock lnum and schedules the corresponding physical eraseblock...
ubi_leb_write(9)
NAME ubi_leb_write - write data. SYNOPSIS int ubi_leb_write (struct ubi_volume_desc *desc , int lnum , const void *buf , int offset , int len ); ARGUMENTS desc volume descriptor lnum logical eraseblock number to write to buf data to write offset offset within the log...
ubi_major2num(9)
NAME ubi_major2num - get UBI device number by character device major number. SYNOPSIS int ubi_major2num (int major ); ARGUMENTS major major number DESCRIPTION This function searches UBI device number object by its major number. If UBI device was not found, this function returns -ENODEV, otherwise the UBI devic...
ubi_more_leb_change_data(9)
NAME ubi_more_leb_change_data - accept more data for atomic LEB change. SYNOPSIS int ubi_more_leb_change_data (struct ubi_device *ubi , struct ubi_volume *vol , const void __user *buf , int count ); ARGUMENTS ubi UBI device description object vol volume description object buf w...
ubi_more_update_data(9)
NAME ubi_more_update_data - write more update data. SYNOPSIS int ubi_more_update_data (struct ubi_device *ubi , struct ubi_volume *vol , const void __user *buf , int count ); ARGUMENTS ubi UBI device description object vol volume description object buf write data (user-space me...
ubi_mtd_param_parse(9)
NAME ubi_mtd_param_parse - parse the 'mtd=' UBI parameter. SYNOPSIS int ubi_mtd_param_parse (const char *val , const struct kernel_param *kp ); ARGUMENTS val the parameter value to parse kp not used DESCRIPTION This function returns zero in case of success and a negative error code in case o...
ubi_next_sqnum(9)
NAME ubi_next_sqnum - get next sequence number. SYNOPSIS unsigned long long ubi_next_sqnum (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object DESCRIPTION This function returns next sequence number to use, which is just the current global sequence counter value. It also increases the globa...
ubi_notify_all(9)
NAME ubi_notify_all - send a notification to all volumes. SYNOPSIS int ubi_notify_all (struct ubi_device *ubi , int ntype , struct notifier_block *nb ); ARGUMENTS ubi UBI device description object ntype notification type to send (UBI_VOLUME_ADDED, etc) nb the notifier to call D...
ubi_open_volume(9)
NAME ubi_open_volume - open UBI volume. SYNOPSIS struct ubi_volume_desc * ubi_open_volume (int ubi_num , int vol_id , int mode ); ARGUMENTS ubi_num UBI device number vol_id volume ID mode open mode DESCRIPTION The mode parameter specifies if the volume should be opened in read-only ...
ubi_open_volume_nm(9)
NAME ubi_open_volume_nm - open UBI volume by name. SYNOPSIS struct ubi_volume_desc * ubi_open_volume_nm (int ubi_num , const char *name , int mode ); ARGUMENTS ubi_num UBI device number name volume name mode open mode DESCRIPTION This function is similar to 'ubi_open_volume', but op...
ubi_open_volume_path(9)
NAME ubi_open_volume_path - open UBI volume by its character device node path. SYNOPSIS struct ubi_volume_desc * ubi_open_volume_path (const char *pathname , int mode ); ARGUMENTS pathname volume character device node path mode open mode DESCRIPTION This function is similar to 'ubi_open_volume', bu...
ubi_put_device(9)
NAME ubi_put_device - drop an UBI device reference. SYNOPSIS void ubi_put_device (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object SEE ALSO Kernel file ./drivers/mtd/ubi/build.c struct mtd_dev_param(9), ubi_volume_notify(9), ubi_notify_all(9), ubi_enumerate_volumes(9), ubi_get_device...
ubi_read_volume_table(9)
NAME ubi_read_volume_table - read the volume table. SYNOPSIS int ubi_read_volume_table (struct ubi_device *ubi , struct ubi_attach_info *ai ); ARGUMENTS ubi UBI device description object ai attaching information DESCRIPTION This function reads volume table, checks it, recover from errors if ...
ubi_refill_pools_and_lock(9)
NAME ubi_refill_pools_and_lock - refills all fastmap PEB pools and takes fm locks. SYNOPSIS void ubi_refill_pools_and_lock (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object SEE ALSO Kernel file ./drivers/mtd/ubi/fastmap-wl.c update_fastmap_work_fn(9), find_anchor_wl_entry(9), return_unus...
ubi_register_volume_notifier(9)
NAME ubi_register_volume_notifier - register a volume notifier. SYNOPSIS int ubi_register_volume_notifier (struct notifier_block *nb , int ignore_existing ); ARGUMENTS nb the notifier description object ignore_existing if non-zero, do not send "added" notification for all already e...
ubi_remove_av(9)
NAME ubi_remove_av - delete attaching information about a volume. SYNOPSIS void ubi_remove_av (struct ubi_attach_info *ai , struct ubi_ainf_volume *av ); ARGUMENTS ai attaching information av the volume attaching information to delete SEE ALSO Kernel file ./drivers/mtd/ubi/attach.c find_...
ubi_remove_volume(9)
NAME ubi_remove_volume - remove volume. SYNOPSIS int ubi_remove_volume (struct ubi_volume_desc *desc , int no_vtbl ); ARGUMENTS desc volume descriptor no_vtbl do not change volume table if not zero DESCRIPTION This function removes volume described by desc. The volume has to be opened in "exclusiv...
ubi_rename_volumes(9)
NAME ubi_rename_volumes - re-name UBI volumes. SYNOPSIS int ubi_rename_volumes (struct ubi_device *ubi , struct list_head *rename_list ); ARGUMENTS ubi UBI device description object rename_list list of struct ubi_rename_entry objects DESCRIPTION This function re-names or removes volumes specified in ...
ubi_resize_volume(9)
NAME ubi_resize_volume - re-size volume. SYNOPSIS int ubi_resize_volume (struct ubi_volume_desc *desc , int reserved_pebs ); ARGUMENTS desc volume descriptor reserved_pebs new size in physical eraseblocks DESCRIPTION This function re-sizes the volume and returns zero in case of succ...
ubi_ro_mode(9)
NAME ubi_ro_mode - switch to read-only mode. SYNOPSIS void ubi_ro_mode (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object SEE ALSO Kernel file ./drivers/mtd/ubi/ubi.h struct ubi_vid_io_buf(9), struct ubi_wl_entry(9), struct ubi_ltree_entry(9), struct ubi_rename_entry(9), struct ub...
ubi_scan_fastmap(9)
NAME ubi_scan_fastmap - scan the fastmap. SYNOPSIS int ubi_scan_fastmap (struct ubi_device *ubi , struct ubi_attach_info *ai , struct ubi_attach_info *scan_ai ); ARGUMENTS ubi UBI device object ai UBI attach info to be filled scan_ai UBI attach info from the first 64 PEBs, used to...
ubi_self_check_all_ff(9)
NAME ubi_self_check_all_ff - check that a region of flash is empty. SYNOPSIS int ubi_self_check_all_ff (struct ubi_device *ubi , int pnum , int offset , int len ); ARGUMENTS ubi UBI device description object pnum the physical eraseblock number to check offset the starting offset wi...
ubi_sgl_init(9)
NAME ubi_sgl_init - initialize an UBI scatter gather list data structure. SYNOPSIS void ubi_sgl_init (struct ubi_sgl *usgl ); ARGUMENTS usgl the UBI scatter gather struct itself DESCRIPTION Please note that you still have to use sg_init_table or any adequate function to initialize the unterlaying struct scatt...
ubi_start_leb_change(9)
NAME ubi_start_leb_change - start atomic LEB change. SYNOPSIS int ubi_start_leb_change (struct ubi_device *ubi , struct ubi_volume *vol , const struct ubi_leb_change_req *req ); ARGUMENTS ubi UBI device description object vol volume description object req operation request DES...
ubi_start_update(9)
NAME ubi_start_update - start volume update. SYNOPSIS int ubi_start_update (struct ubi_device *ubi , struct ubi_volume *vol , long long bytes ); ARGUMENTS ubi UBI device description object vol volume description object bytes update bytes DESCRIPTION This function starts volume u...
ubi_sync(9)
NAME ubi_sync - synchronize UBI device buffers. SYNOPSIS int ubi_sync (int ubi_num ); ARGUMENTS ubi_num UBI device to synchronize DESCRIPTION The underlying MTD device may cache data in hardware or in software. This function ensures the caches are flushed. Returns zero in case of success and a negative error cod...
ubi_sync_erase(9)
NAME ubi_sync_erase - synchronously erase a physical eraseblock. SYNOPSIS int ubi_sync_erase (struct ubi_device *ubi , struct ubi_wl_entry *e , int torture ); ARGUMENTS ubi UBI device description object e the physical eraseblock to erase torture if the physical eraseblock has to ...
ubi_thread(9)
NAME ubi_thread - UBI background thread. SYNOPSIS int ubi_thread (void *u ); ARGUMENTS u the UBI device description object pointer SEE ALSO Kernel file ./drivers/mtd/ubi/wl.c wl_tree_add(9), wl_entry_destroy(9), do_work(9), in_wl_tree(9), in_pq(9), prot_queue_add(9), find_wl_entry(9), find_mean_wl_entry(9)...
ubi_unregister_volume_notifier(9)
NAME ubi_unregister_volume_notifier - unregister the volume notifier. SYNOPSIS int ubi_unregister_volume_notifier (struct notifier_block *nb ); ARGUMENTS nb the notifier description object DESCRIPTION This function unregisters volume notifier nm and returns zero in case of success and a negative error code ...
ubi_update_fastmap(9)
NAME ubi_update_fastmap - will be called by UBI if a volume changes or a fastmap pool becomes full. SYNOPSIS int ubi_update_fastmap (struct ubi_device *ubi ); ARGUMENTS ubi UBI device object DESCRIPTION Returns 0 on success, < 0 indicates an internal error. SEE ALSO Kernel file ./drivers/mtd/ubi/fastmap.c...
ubi_update_layout_vol(9)
NAME ubi_update_layout_vol - helper for updatting layout volumes on flash SYNOPSIS int ubi_update_layout_vol (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object SEE ALSO Kernel file ./drivers/mtd/ubi/vtbl.c ubi_change_vtbl_record(9), ubi_vtbl_rename_volumes(9), vtbl_check(9), create_v...
ubi_update_reserved(9)
NAME ubi_update_reserved - update bad eraseblock handling accounting data. SYNOPSIS void ubi_update_reserved (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object DESCRIPTION This function calculates the gap between current number of PEBs reserved for bad eraseblock handling and the requir...
ubi_volume_notify(9)
NAME ubi_volume_notify - send a volume change notification. SYNOPSIS int ubi_volume_notify (struct ubi_device *ubi , struct ubi_volume *vol , int ntype ); ARGUMENTS ubi UBI device description object vol volume description object of the changed volume ntype notification type to se...
ubi_vtbl_rename_volumes(9)
NAME ubi_vtbl_rename_volumes - rename UBI volumes in the volume table. SYNOPSIS int ubi_vtbl_rename_volumes (struct ubi_device *ubi , struct list_head *rename_list ); ARGUMENTS ubi UBI device description object rename_list list of struct ubi_rename_entry objects DESCRIPTION This function re-names mul...
ubi_wl_close(9)
NAME ubi_wl_close - close the wear-leveling sub-system. SYNOPSIS void ubi_wl_close (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object SEE ALSO Kernel file ./drivers/mtd/ubi/wl.c wl_tree_add(9), wl_entry_destroy(9), do_work(9), in_wl_tree(9), in_pq(9), prot_queue_add(9), find_wl_entry(9), ...
ubi_wl_flush(9)
NAME ubi_wl_flush - flush all pending works. SYNOPSIS int ubi_wl_flush (struct ubi_device *ubi , int vol_id , int lnum ); ARGUMENTS ubi UBI device description object vol_id the volume id to flush for lnum the logical eraseblock number to flush for DESCRIPTION This function execu...
ubi_wl_get_fm_peb(9)
NAME ubi_wl_get_fm_peb - find a physical erase block with a given maximal number. SYNOPSIS struct ubi_wl_entry * ubi_wl_get_fm_peb (struct ubi_device *ubi , int anchor ); ARGUMENTS ubi UBI device description object anchor This PEB will be used as anchor PEB by fastmap DESCRIPTION The function re...
ubi_wl_get_peb(9)
NAME ubi_wl_get_peb - get a physical eraseblock. SYNOPSIS int ubi_wl_get_peb (struct ubi_device *ubi ); ARGUMENTS ubi UBI device description object DESCRIPTION This function returns a physical eraseblock in case of success and a negative error code in case of failure. Returns with ubi->fm_eba_sem held in re...
ubi_wl_init(9)
NAME ubi_wl_init - initialize the WL sub-system using attaching information. SYNOPSIS int ubi_wl_init (struct ubi_device *ubi , struct ubi_attach_info *ai ); ARGUMENTS ubi UBI device description object ai attaching information DESCRIPTION This function returns zero in case of success, and a ...
ubi_wl_put_fm_peb(9)
NAME ubi_wl_put_fm_peb - returns a PEB used in a fastmap to the wear-leveling sub-system. see: ubi_wl_put_peb() SYNOPSIS int ubi_wl_put_fm_peb (struct ubi_device *ubi , struct ubi_wl_entry *fm_e , int lnum , int torture ); ARGUMENTS ubi UBI device description object fm_e physical eraseblock to ...