disk_replace_part_tbl
Prev | Chapter 14. Block Devices | Next

## Name

disk_replace_part_tbl — replace disk->part_tbl in RCU-safe way

## Synopsis

`void disk_replace_part_tbl (` | struct gendisk * disk,
| struct disk_part_tbl * new_ptbl`)`;

## Arguments

`disk`

  disk to replace part_tbl for

`new_ptbl`

  new part_tbl to install

## Description

Replace disk->part_tbl with `new_ptbl` in RCU-safe way. The original ptbl is freed using RCU callback.

## LOCKING

Matching bd_mutx locked.

Prev | Up | Next
blk_free_devt | Home | disk_expand_part_tbl