Mdoc and language cleanup.
This commit is contained in:
parent
eee3404481
commit
9d721de31e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=186714
@ -24,7 +24,9 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd September 8, 2008
|
.Dd January 3, 2009
|
||||||
|
.Dt DEV_CLONE 9
|
||||||
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm dev_clone ,
|
.Nm dev_clone ,
|
||||||
.Nm drain_dev_clone_events
|
.Nm drain_dev_clone_events
|
||||||
@ -40,11 +42,11 @@ EVENTHANDLER_REGISTER(dev_clone, clone_handler, arg, priority);
|
|||||||
.Ft void
|
.Ft void
|
||||||
.Fn drain_dev_clone_events
|
.Fn drain_dev_clone_events
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
Device driver may register a listener that will be notified each time
|
A device driver may register a listener that will be notified each time
|
||||||
name lookup on the
|
a name lookup on the
|
||||||
.Xr devfs
|
.Xr devfs 5
|
||||||
mount point fails to find the vnode.
|
mount point fails to find the vnode.
|
||||||
Listener shall be registered for the
|
A listener shall be registered for the
|
||||||
.Va dev_clone
|
.Va dev_clone
|
||||||
event.
|
event.
|
||||||
When called, it is supplied with the first argument
|
When called, it is supplied with the first argument
|
||||||
@ -52,23 +54,25 @@ When called, it is supplied with the first argument
|
|||||||
that was specified at handler registration time,
|
that was specified at handler registration time,
|
||||||
appropriate credentials
|
appropriate credentials
|
||||||
.Va cr ,
|
.Va cr ,
|
||||||
|
and a name
|
||||||
.Va name
|
.Va name
|
||||||
of the length
|
of length
|
||||||
.Va namelen
|
.Va namelen
|
||||||
that was looked for.
|
that we look for.
|
||||||
If handler decides that the name is appropriate and want to create device
|
If the handler decides that the name is appropriate and wants to create the device
|
||||||
that will be associated with the name, it should return it to the devfs
|
that will be associated with the name, it should return it to devfs
|
||||||
in the
|
in the
|
||||||
.Va dev .
|
.Va dev
|
||||||
|
argument.
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
.Fn drain_dev_clone_events
|
.Fn drain_dev_clone_events
|
||||||
function is a barrier.
|
function is a barrier.
|
||||||
It is guaranteed that all calls to eventhandlers for dev_clone that were
|
It is guaranteed that all calls to eventhandlers for
|
||||||
started before
|
.Nm dev_clone
|
||||||
|
that were started before
|
||||||
.Fn drain_dev_clone_events
|
.Fn drain_dev_clone_events
|
||||||
call, are finished before it returns control.
|
call, are finished before it returns control.
|
||||||
.Pp
|
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr devfs 5 ,
|
.Xr devfs 5 ,
|
||||||
.Xr namei 9
|
.Xr namei 9
|
||||||
|
Loading…
Reference in New Issue
Block a user