'\" t .\" Title: ata_finalize_port_ops .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: libata Core Internals .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "ATA_FINALIZE_PORT_OP" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "libata Core Internals" .\" ----------------------------------------------------------------- .\" * 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" ata_finalize_port_ops \- finalize ata_port_operations .SH "SYNOPSIS" .HP \w'void\ ata_finalize_port_ops('u .BI "void ata_finalize_port_ops(struct\ ata_port_operations\ *\ " "ops" ");" .SH "ARGUMENTS" .PP \fIops\fR .RS 4 ata_port_operations to finalize .RE .SH "DESCRIPTION" .PP An ata_port_operations can inherit from another ops and that ops can again inherit from another\&. This can go on as many times as necessary as long as there is no loop in the inheritance chain\&. .PP Ops tables are finalized when the host is started\&. NULL or unspecified entries are inherited from the closet ancestor which has the method and the entry is populated with it\&. After finalization, the ops table directly points to all the methods and \->inherits is no longer necessary and cleared\&. .PP Using ATA_OP_NULL, inheriting ops can force a method to NULL\&. .PP LOCKING: None\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br