how do we indicate to LiS that a driver supports clone opens only? is there a way to do this in the init_module routine (e.g., when invoking the lis_register_strdev routine)?
open routine of my driver conducts a check as follows:
xyzopen(queue_t *q, devq_t *devq, int flag, int sflag, cred_t *credp) {
...
if (sflag != CLONEOPEN) {
return(ENXIO);
}
...
}
and this check is currently failing. when i check on the values of flag & sflag, i get flag=0x802 and sflag=0x0.
Not a direct answer to your question, but it may help...
The clone versus non-clone open will be a function of what /dev entry you open. If it has the major number of the clone driver and the minor number equal to your major, sflag will be equal to CLONEOPEN. So it's not what we tell LiS that controls this.
Steve
------------------------------------------------------------------------ Steve Schefter phone: +1 705 725 9999 x26 The Software Group Limited fax: +1 705 725 9666 642 Welham Road, email: [EMAIL PROTECTED] Barrie, Ontario CANADA L4N 9A1 Web: www.wanware.com
_______________________________________________ Linux-streams mailing list [EMAIL PROTECTED] http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
