Manual Reference Pages - DEV_CLONE (9)
- eventhandler for name-based device cloning in devfs
clone_handler void *arg struct ucred *cr char *name int namelen struct cdev **dev
EVENTHANDLER_REGISTER(dev_clone, clone_handler, arg, priority);
A device driver may register a listener that will be notified each time
a name lookup on the
mount point fails to find the vnode.
A listener shall be registered for the
When called, it is supplied with the first argument
that was specified at handler registration time,
and a name
that we look for.
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 devfs
function is a barrier.
It is guaranteed that all calls to eventhandlers for
that were started before
call, are finished before it returns control.
Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.