Annotation of xinu/sys/rfio.c, revision 1.1

1.1     ! root        1: /* rfio.c - rfio */
        !             2: 
        !             3: #include <conf.h>
        !             4: #include <kernel.h>
        !             5: #include <network.h>
        !             6: 
        !             7: /*------------------------------------------------------------------------
        !             8:  *  rfio  --  perform input or output using remote file server
        !             9:  *------------------------------------------------------------------------
        !            10:  */
        !            11: rfio(devptr, rop, buff, len)
        !            12: struct devsw   *devptr;
        !            13: int    rop;
        !            14: char   *buff;
        !            15: int    len;
        !            16: {
        !            17:        struct  rfblk   *rfptr;
        !            18:        int     retcode;
        !            19: 
        !            20:        rfptr = (struct rfblk *)devptr->dvioblk;
        !            21:        wait(rfptr->rf_mutex);
        !            22:        if (len < 0 || rfptr->rf_state == RFREE) {
        !            23:                signal(rfptr->rf_mutex);
        !            24:                return(SYSERR);
        !            25:        }
        !            26:        retcode = rfmkpac(rop, rfptr->rf_name, &rfptr->rf_pos, buff, len);
        !            27:        signal(rfptr->rf_mutex);
        !            28:        return(retcode);
        !            29: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.