Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dev_clone(9) [opensolaris man page]

DEV_CLONE(9)						   BSD Kernel Developer's Manual					      DEV_CLONE(9)

NAME
dev_clone, drain_dev_clone_events -- eventhandler for name-based device cloning in devfs SYNOPSIS
#include <sys/param.h> #include <sys/conf.h> void clone_handler(void *arg, struct ucred *cr, char *name, int namelen, struct cdev **dev); EVENTHANDLER_REGISTER(dev_clone, clone_handler, arg, priority); void drain_dev_clone_events(); DESCRIPTION
A device driver may register a listener that will be notified each time a name lookup on the devfs(5) mount point fails to find the vnode. A listener shall be registered for the dev_clone event. When called, it is supplied with the first argument arg that was specified at handler registration time, appropriate credentials cr, and a name name of length namelen 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 in the dev argument. The drain_dev_clone_events() function is a barrier. It is guaranteed that all calls to eventhandlers for dev_clone that were started before drain_dev_clone_events() call, are finished before it returns control. SEE ALSO
devfs(5), namei(9) BSD
January 3, 2009 BSD

Check Out this Related Man Page

DEV_CLONE(9)						   BSD Kernel Developer's Manual					      DEV_CLONE(9)

NAME
dev_clone, drain_dev_clone_events -- eventhandler for name-based device cloning in devfs SYNOPSIS
#include <sys/param.h> #include <sys/conf.h> void clone_handler(void *arg, struct ucred *cr, char *name, int namelen, struct cdev **dev); EVENTHANDLER_REGISTER(dev_clone, clone_handler, arg, priority); void drain_dev_clone_events(); DESCRIPTION
A device driver may register a listener that will be notified each time a name lookup on the devfs(5) mount point fails to find the vnode. A listener shall be registered for the dev_clone event. When called, it is supplied with the first argument arg that was specified at handler registration time, appropriate credentials cr, and a name name of length namelen 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 in the dev argument. The drain_dev_clone_events() function is a barrier. It is guaranteed that all calls to eventhandlers for dev_clone that were started before drain_dev_clone_events() call, are finished before it returns control. SEE ALSO
devfs(5), namei(9) BSD
January 3, 2009 BSD
Man Page

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

hii

I am getting result of time_bmb.sql query in variable "a". Now i want to use same result in new SQL query. i am giving some example. ****************************************** a=`sqlplus sa/sa@iccsdev_clone @time_bmb.sql` echo $a for j in $a time_bmb_chk=`select * from table_time_bomb... (2 Replies)
Discussion started by: decent_sant
2 Replies

2. UNIX for Advanced & Expert Users

How do we know which processis creating a datafile

Hi, Is there any way we can find out which process is creating a partucular datafile.I know the user and group but i am just curios to know is there any way to find the process. Thanks (7 Replies)
Discussion started by: ukatru
7 Replies

3. AIX

No iscsi available in newly created AIX wpar

AIX 7.1 New to WPAR, hopefully just missing something simple here. Creating the WPAR like this..... (The box where the WPAR is hosted does have an iscsi protocol device) mkwpar -h wpar08 -l -n wpar08 -N interface=en0 address=xxx.xx.xx.xxx netmask=255.255.255.0 -D devname=/dev/iscsi0 -D... (0 Replies)
Discussion started by: TomR
0 Replies