函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\partition-generic.c Create Date:2022-07-27 18:56:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Must be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone.

函数原型:void delete_partition(struct gendisk *disk, int partno)

返回类型:void

参数:

类型参数名称
struct gendisk *disk
intpartno
275  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)
279  如果partno大于等于len则返回
282  part等于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(part[partno], 1)
283  如果非part则返回
286  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(part[partno], NULL)
287  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)
288  递减引用计数对象
289  device_del(part_to_dev(part))
297  We invalidate devt by assigning NULL pointer for devt in idr.
298  hd_struct_kill(part)
调用者
名称描述
del_gendisk
blk_drop_partitions