]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man2/pciconfig_read.2
gettid.2: Document header file and feature test macro requirements for gettid()
[thirdparty/man-pages.git] / man2 / pciconfig_read.2
index 636d85800d44287fbd80aed9ed0f59c577a5272f..90139041db6e84b82ba84869c6e6a73f0097ddcd 100644 (file)
@@ -1,16 +1,17 @@
 .\" Contributed by Niki A. Rahimi, LTC Security Development
 .\" narahimi@us.ibm.com
+.\"
 .\" %%%LICENSE_START(FREELY_REDISTRIBUTABLE)
-.\" May be freely distributed.
-.\" %%%END_LICENSE
+.\" May be freely distributed and modified.
+.\" %%%LICENSE_END
 .\"
-.TH PCICONFIG_READ 2 2003-07-14 "Linux" "Linux Programmer's Manual"
+.TH PCICONFIG_READ 2 2016-07-17 "Linux" "Linux Programmer's Manual"
 .SH NAME
 pciconfig_read, pciconfig_write, pciconfig_iobase \- pci device information handling
 .SH SYNOPSIS
 .nf
 .B #include <pci.h>
-.sp
+.PP
 .BI "int pciconfig_read(unsigned long " bus ", unsigned long " dfn ,
 .BI "          unsigned long " off ", unsigned long " len ", void *" buf );
 .BI "int pciconfig_write(unsigned long " bus ", unsigned long " dfn ,
@@ -49,13 +50,13 @@ the IO base for PIO cycles, or the ISA holes if any.
 .SH RETURN VALUE
 .TP
 .BR pciconfig_read ()
-On success zero is returned.
+On success, zero is returned.
 On error, \-1 is returned and
 .I errno
 is set appropriately.
 .TP
 .BR pciconfig_write ()
-On success zero is returned.
+On success, zero is returned.
 On error, \-1 is returned and
 .I errno
 is set appropriately.
@@ -96,14 +97,16 @@ The system has not implemented these calls
 not defined).
 .TP
 .B EOPNOTSUPP
-This return value is only valid for
+This return value is valid only for
 .BR pciconfig_iobase ().
 It is returned if the value for
 .I which
 is invalid.
 .TP
 .B EPERM
-User does not have the \fBCAP_SYS_ADMIN\fP capability.
+User does not have the
+.B CAP_SYS_ADMIN
+capability.
 This does not apply to
 .BR pciconfig_iobase ().
 .SH CONFORMING TO