taglinefilesource code
handle16arch/sparc/prom/devops.cint handle;
handle19arch/sparc/prom/devops.chandle = (*(romvec->pv_v0devops.v0_devopen))(dstr);
handle20arch/sparc/prom/devops.cif(handle == 0) return -1;
handle21arch/sparc/prom/devops.creturn handle;
handle26arch/sparc/prom/devops.chandle = (*(romvec->pv_v2devops.v2_dev_open))(dstr);
handle27arch/sparc/prom/devops.creturn handle;
handle253drivers/scsi/scsi_proc.cinline int parseFree (parseHandle *handle)               /* free memory     */
handle255drivers/scsi/scsi_proc.ckfree (handle->cmdPos);
handle256drivers/scsi/scsi_proc.ckfree (handle);
handle265drivers/scsi/scsi_proc.cparseHandle *handle;                            /* new handle      */
handle269drivers/scsi/scsi_proc.cif ((handle = (parseHandle*) kmalloc(sizeof(parseHandle), 1)) == 0)
handle271drivers/scsi/scsi_proc.cif ((handle->cmdPos = (char**) kmalloc(sizeof(int), cmdNum)) == 0) {
handle272drivers/scsi/scsi_proc.ckfree(handle);
handle276drivers/scsi/scsi_proc.chandle->buf     = handle->bufPos = buf;         /* init handle     */
handle277drivers/scsi/scsi_proc.chandle->cmdList = cmdList;
handle278drivers/scsi/scsi_proc.chandle->cmdNum  = cmdNum;
handle280drivers/scsi/scsi_proc.chandle->cmdPos[cmdNum = 0] = cmdList;
handle284drivers/scsi/scsi_proc.chandle->cmdPos[++cmdNum] = ptr++;
handle287drivers/scsi/scsi_proc.creturn(handle);
handle291drivers/scsi/scsi_proc.cint parseOpt(parseHandle *handle, char **param)
handle297drivers/scsi/scsi_proc.cif (!handle)                                    /* invalid handle  */
handle298drivers/scsi/scsi_proc.creturn(parseFree(handle));
handle300drivers/scsi/scsi_proc.cfor (; *(handle->bufPos) && *(handle->bufPos) == ' '; handle->bufPos++);
handle301drivers/scsi/scsi_proc.cif (!*(handle->bufPos))
handle302drivers/scsi/scsi_proc.creturn(parseFree(handle));                  /* end of data     */
handle304drivers/scsi/scsi_proc.cstartPos = handle->bufPos;                      /* store cmd start */
handle305drivers/scsi/scsi_proc.cfor (; handle->cmdPos[cmdIndex][cmdLen] && *(handle->bufPos); handle->bufPos++)
handle309drivers/scsi/scsi_proc.cif (*(handle->bufPos) == handle->cmdPos[cmdIndex][cmdLen])
handle312drivers/scsi/scsi_proc.cif (memcmp(startPos, (char*)(handle->cmdPos[++cmdIndex]), cmdLen))
handle313drivers/scsi/scsi_proc.creturn(parseFree(handle));      /* unknown command */
handle315drivers/scsi/scsi_proc.cif (cmdIndex >= handle->cmdNum)
handle316drivers/scsi/scsi_proc.creturn(parseFree(handle));          /* unknown command */     
handle324drivers/scsi/scsi_proc.cfor (; *(handle->bufPos) && *(handle->bufPos) == ' '; handle->bufPos++);
handle325drivers/scsi/scsi_proc.c*param = handle->bufPos; 
handle327drivers/scsi/scsi_proc.cfor (; *(handle->bufPos) && *(handle->bufPos) != ' '; handle->bufPos++);
handle328drivers/scsi/scsi_proc.c*(handle->bufPos++) = 0;