Annotation of xinu/sys/LSI/dscntl.c, revision 1.1.1.1

1.1       root        1: /* dscntl.c - dscntl */
                      2: 
                      3: #include <conf.h>
                      4: #include <kernel.h>
                      5: #include <proc.h>
                      6: #include <disk.h>
                      7: 
                      8: /*------------------------------------------------------------------------
                      9:  *  dscntl  --  control disk driver/device
                     10:  *------------------------------------------------------------------------
                     11:  */
                     12: dscntl(devptr, func)
                     13:        struct  devsw   *devptr;
                     14: {
                     15:        int     stat;
                     16:        char    ps;
                     17: 
                     18:        disable(ps);
                     19:        switch (func) {
                     20: 
                     21:                case DSKSYNC:
                     22:                        stat = dsksync(devptr);
                     23:                        break;
                     24: 
                     25:                default:
                     26:                        stat = SYSERR;
                     27:                        break;
                     28:        }
                     29:        restore(ps);
                     30:        return(stat);
                     31: }

unix.superglobalmegacorp.com

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