[BACK]Return to ccd.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / dev

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/dev/ccd.c between version 1.38 and 1.39

version 1.38, 1997/01/30 04:00:52 version 1.39, 1997/03/12 22:31:37
Line 1060  ccdioctl(dev, cmd, data, flag, p)
Line 1060  ccdioctl(dev, cmd, data, flag, p)
 {  {
         int unit = ccdunit(dev);          int unit = ccdunit(dev);
         int i, j, lookedup = 0, error = 0;          int i, j, lookedup = 0, error = 0;
         int part, pmask, s;          int part, pmask;
         struct ccd_softc *cs;          struct ccd_softc *cs;
         struct ccd_ioctl *ccio = (struct ccd_ioctl *)data;          struct ccd_ioctl *ccio = (struct ccd_ioctl *)data;
         struct ccddevice ccd;          struct ccddevice ccd;
Line 1241  ccdioctl(dev, cmd, data, flag, p)
Line 1241  ccdioctl(dev, cmd, data, flag, p)
                 /* Detatch the disk. */                  /* Detatch the disk. */
                 disk_detach(&cs->sc_dkdev);                  disk_detach(&cs->sc_dkdev);
   
                 /* This must be atomic. */  
                 s = splhigh();  
                 ccdunlock(cs);                  ccdunlock(cs);
                 bzero(cs, sizeof(struct ccd_softc));  
                 splx(s);  
   
                 break;                  break;
   

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

CVSweb <webmaster@jp.NetBSD.org>