Driver to Driver communication, with kobj?

2008-09-01 Thread Alex
Hi,

I was wondering what the best way of doing driver to driver
communication is. I'm trying to enqueue an ata-command from a
completely different driver (nothing to do with storage / ata). I
would just bluntly use the ata_controlcmd() function, but it would
require for me to know the device_t of the drive I'm trying to access.
I don't know which device_t it would be, nor do I know how to find it
out.

If this is a no-go... I really need some help with kobj, as I can't
figure it out fully... How do you use a kobj "exported" method from
another driver?


Thank you in advance,

Alex
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Driver to Driver Communication

2003-08-14 Thread Jayasheela Bhat

Hi All,

Could anybody help me to know how a driver to driver communication is done in FreeBSD 
? 
My exact problem is something like this. In the current implementation of scsi_target 
mode driver, there is a associated userland application polling the target device and 
data is read from target device to user space and then written to a file. In stead, I 
want to do it in the scsi_target driver itself such that all I/O queues are redirected 
to a disk device. For this purpose, How can I interface with the scsi disk driver i.e. 
scsi_da.c from the scsi_target driver? 

Thanks & Regards,

Jaya



SMS using the Yahoo! Messenger;Download latest version.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"