'\" t .\" Title: disk_replace_part_tbl .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Block Devices .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DISK_REPLACE_PART_TB" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Block Devices" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" disk_replace_part_tbl \- replace disk\->part_tbl in RCU\-safe way .SH "SYNOPSIS" .HP \w'void\ disk_replace_part_tbl('u .BI "void disk_replace_part_tbl(struct\ gendisk\ *\ " "disk" ", struct\ disk_part_tbl\ *\ " "new_ptbl" ");" .SH "ARGUMENTS" .PP \fIdisk\fR .RS 4 disk to replace part_tbl for .RE .PP \fInew_ptbl\fR .RS 4 new part_tbl to install .RE .SH "DESCRIPTION" .PP Replace disk\->part_tbl with \fInew_ptbl\fR in RCU\-safe way\&. The original ptbl is freed using RCU callback\&. .PP LOCKING: Matching bd_mutx locked\&. .SH "COPYRIGHT" .br