Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\genhd.c Create Date:2022-07-28 17:18:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:disk_replace_part_tbl - replace disk->part_tbl in RCU-safe way*@disk: disk to replace part_tbl for*@new_ptbl: new part_tbl to install* Replace disk->part_tbl with @new_ptbl in RCU-safe way. The* original ptbl is freed using RCU callback.* LOCKING:

Proto:static void disk_replace_part_tbl(struct gendisk *disk, struct disk_part_tbl *new_ptbl)

Type:void

Parameter:

TypeParameterName
struct gendisk *disk
struct disk_part_tbl *new_ptbl
1260  old_ptbl = cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit( Array of pointers to partitions indexed by partno. * Protected with matching bdev lock but stat and other * non-critical accesses use RCU. Always access through * helpers., 1)
1263  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization( Array of pointers to partitions indexed by partno. * Protected with matching bdev lock but stat and other * non-critical accesses use RCU. Always access through * helpers., new_ptbl)
1265  If old_ptbl Then
1266  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(last_lookup, NULL)
1267  kfree_rcu() - kfree an object after a grace period(old_ptbl, rcu_head)
Caller
NameDescribe
disk_expand_part_tbldisk_expand_part_tbl - expand disk->part_tbl*@disk: disk to expand part_tbl for*@partno: expand such that this partno can fit in* Expand disk->part_tbl such that @partno can fit in. disk->part_tbl
disk_release