>>>>> "TH" == Tom Hughes <[EMAIL PROTECTED]> writes:

  TH> I can't see any reference to threads in the Solaris manual pages
  TH> either. Certainly Unixware does:

  TH> I thought that using threads was the standard SVR4 implementation
  TH> but maybe Solaris has moved away from that.

well, my question then is how does solaris do it? it can't be done with
user level libs alone. what system calls does it use? undocumented ones
perhaps with the libs as the public api?

in the solaris developer docs it says:


        When you prefer to poll devices rather than to depend on a SIGIO
        interrupt, use poll(2).  You can also poll to determine the
        origin of a SIGIO interrupt.

and poll supports regular files. does this mean it supports AIO
directly?

i finally found how solaris does its AIO under the libs. there is a
system call kaio which supports them. but there is no docs on the kaio
call itself that i can find. so it is like i guessed, an undocumented
syscall with user libs over it. but it definitely is kernel aio without
threads.

from syscall.h:

#define SYS_kaio                178
        /*
         * subcodes:
         *      aioread(...)    :: kaio(AIOREAD, ...)
         *      aiowrite(...)   :: kaio(AIOWRITE, ...)
         *      aiowait(...)    :: kaio(AIOWAIT, ...)
         *      aiocancel(...)  :: kaio(AIOCANCEL, ...)
         *      aionotify()     :: kaio(AIONOTIFY)
         *      aioinit()       :: kaio(AIOINIT)
         *      aiostart()      :: kaio(AIOSTART)
         *      see <sys/aio.h>
         */

BTW this is solaris 7. 8 may have doc on kaio. we should stick with the
libs to use it and hopefully not need SIGIO but we can use poll to work
with them. this will be easy to integrate into the event loop and i/o
subsystem. 

uri

-- 
Uri Guttman  ---------  [EMAIL PROTECTED]  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com

Reply via email to