Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2019 10:50:05 +0200
From:      Niclas Zeising <zeising@freebsd.org>
To:        Benjamin Kaduk <bjkfbsd@gmail.com>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r349133 - head/share/man/man4
Message-ID:  <52998167-2193-20da-2b54-29d0862a036d@freebsd.org>
In-Reply-To: <CAJ5_RoBYUgF%2B2FJnaa5DyHUyfaOvE8%2B62523FrvysUHb0FyR6A@mail.gmail.com>
References:  <201906170541.x5H5flRE089727@repo.freebsd.org> <CAJ5_RoBYUgF%2B2FJnaa5DyHUyfaOvE8%2B62523FrvysUHb0FyR6A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-06-17 09:56, Benjamin Kaduk wrote:
> On Sun, Jun 16, 2019 at 10:42 PM Niclas Zeising <zeising@freebsd.org=20
> <mailto:zeising@freebsd.org>> wrote:
>=20
>     Author: zeising (doc,ports committer)
>     Date: Mon Jun 17 05:41:47 2019
>     New Revision: 349133
>     URL: https://svnweb.freebsd.org/changeset/base/349133
>=20
>     Log:
>      =C2=A0 pci(4): Document PCIOCATTACHED
>=20
>      =C2=A0 Document the PCIOCATTACHED ioctl(2) in the pci(4) manual.
>      =C2=A0 PCIOCATTACHED is used to query if a driver has attached to =
a PCI.
>=20
>      =C2=A0 Reviewed by:=C2=A0 bcr, imp
>      =C2=A0 MFC after:=C2=A0 =C2=A0 2 weeks
>      =C2=A0 Differential Revision: https://reviews.freebsd.org/D20652
>=20
>     Modified:
>      =C2=A0 head/share/man/man4/pci.4
>=20
>     Modified: head/share/man/man4/pci.4
>     =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
>     --- head/share/man/man4/pci.4=C2=A0 =C2=A0Mon Jun 17 03:48:44 2019 =
     =20
>     (r349132)
>     +++ head/share/man/man4/pci.4=C2=A0 =C2=A0Mon Jun 17 05:41:47 2019 =
     =20
>     (r349133)
>     @@ -24,7 +24,7 @@
>      =C2=A0.\"
>      =C2=A0.\" $FreeBSD$
>      =C2=A0.\"
>     -.Dd June 14, 2018
>     +.Dd June 17, 2019
>      =C2=A0.Dt PCI 4
>      =C2=A0.Os
>      =C2=A0.Sh NAME
>     @@ -333,6 +333,26 @@ The limitations on data width described for
>      =C2=A0reading registers, above, also apply to writing
>      =C2=A0.Tn PCI
>      =C2=A0configuration registers.
>     +.It PCIOCATTACHED
>     +This
>     +.Xr ioctl 2
>     +allows users to query if a driver is attached to the
>     +.Tn PCI
>     +specified in the passed-in
>=20
>=20
> Is there a missing word like "device" here?

I just followed the same syntax as for the PCIOCWRITE ioctl in the=20
paragraph before.  I found it a little strange when I read it, but I=20
kind of assumed there was a reason it said PCI and not PCI device,=20
perhaps similar to using RAM instead of RAM memory, if you understand=20
what I mean.
Regards
Niclas

>=20
>     +.Va pci_io
>     +structure.
>     +The
>     +.Va pci_io
>     +structure is described above, however, the
>     +.Va pi_reg
>     +and
>     +.Va pi_width
>     +fields are not used.
>     +The status of the device is stored in the
>     +.Va pi_data
>     +field.
>     +A value of 0 indicates no driver is attached, while a value larger
>     than 0
>     +indicates that a driver is attached.
>      =C2=A0.It PCIOCBARMMAP
>      =C2=A0This
>      =C2=A0.Xr ioctl 2


--=20
Niclas Zeising



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52998167-2193-20da-2b54-29d0862a036d>