---
name: "disk_replace_part_tbl"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/disk_replace_part_tbl"
---

# disk\_replace\_part\_tbl(9)

replace disk-\>part\_tbl in RCU-safe way

## 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.

## COPYRIGHT
