On Jan 31, 2008 6:37 AM, Carlos Cumming <[EMAIL PROTECTED]> wrote:
> I'm at the point of designing the management interface to a SCSI RAID
> controller.
>
> In other os's, this controllers driver has a completely different char
> driver embedded in it just to provide an ioctl(... ) callable from
> userspace. The reason is that if there are no targets configured,
> there's no raw device entry point and so the ioctl(..)'s not available
> to userspace. Or course to create and configure a target, you need the
> ioctl(.. )......
>
> I hope that Solaris has a better way to do this.
>
> So, the question is, what is the, "preferred" way to get to SCSI
> controller settings from user space in Solaris?

I am not sure it is a preferred way, but you can always make
your driver create a "control" node (smthctl), which will be
present even without a single target available from the RAID
hardware. Then use it for all your management tasks.
I'd think it provides healthy separation between data path
and control path.


-- 
Regards,
        Cyril
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to