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;
handle254drivers/scsi/scsi_proc.cinline int parseFree (parseHandle *handle)               /* free memory     */
handle256drivers/scsi/scsi_proc.ckfree (handle->cmdPos);
handle257drivers/scsi/scsi_proc.ckfree (handle);
handle266drivers/scsi/scsi_proc.cparseHandle *handle;                            /* new handle      */
handle270drivers/scsi/scsi_proc.cif ((handle = (parseHandle*) kmalloc(sizeof(parseHandle), 1)) == 0)
handle272drivers/scsi/scsi_proc.cif ((handle->cmdPos = (char**) kmalloc(sizeof(int), cmdNum)) == 0) {
handle273drivers/scsi/scsi_proc.ckfree(handle);
handle277drivers/scsi/scsi_proc.chandle->buf     = handle->bufPos = buf;         /* init handle     */
handle278drivers/scsi/scsi_proc.chandle->cmdList = cmdList;
handle279drivers/scsi/scsi_proc.chandle->cmdNum  = cmdNum;
handle281drivers/scsi/scsi_proc.chandle->cmdPos[cmdNum = 0] = cmdList;
handle285drivers/scsi/scsi_proc.chandle->cmdPos[++cmdNum] = ptr++;
handle288drivers/scsi/scsi_proc.creturn(handle);
handle292drivers/scsi/scsi_proc.cint parseOpt(parseHandle *handle, char **param)
handle298drivers/scsi/scsi_proc.cif (!handle)                                    /* invalid handle  */
handle299drivers/scsi/scsi_proc.creturn(parseFree(handle));
handle301drivers/scsi/scsi_proc.cfor (; *(handle->bufPos) && *(handle->bufPos) == ' '; handle->bufPos++);
handle302drivers/scsi/scsi_proc.cif (!*(handle->bufPos))
handle303drivers/scsi/scsi_proc.creturn(parseFree(handle));                  /* end of data     */
handle305drivers/scsi/scsi_proc.cstartPos = handle->bufPos;                      /* store cmd start */
handle306drivers/scsi/scsi_proc.cfor (; handle->cmdPos[cmdIndex][cmdLen] && *(handle->bufPos); handle->bufPos++)
handle310drivers/scsi/scsi_proc.cif (*(handle->bufPos) == handle->cmdPos[cmdIndex][cmdLen])
handle313drivers/scsi/scsi_proc.cif (memcmp(startPos, (char*)(handle->cmdPos[++cmdIndex]), cmdLen))
handle314drivers/scsi/scsi_proc.creturn(parseFree(handle));      /* unknown command */
handle316drivers/scsi/scsi_proc.cif (cmdIndex >= handle->cmdNum)
handle317drivers/scsi/scsi_proc.creturn(parseFree(handle));          /* unknown command */     
handle325drivers/scsi/scsi_proc.cfor (; *(handle->bufPos) && *(handle->bufPos) == ' '; handle->bufPos++);
handle326drivers/scsi/scsi_proc.c*param = handle->bufPos; 
handle328drivers/scsi/scsi_proc.cfor (; *(handle->bufPos) && *(handle->bufPos) != ' '; handle->bufPos++);
handle329drivers/scsi/scsi_proc.c*(handle->bufPos++) = 0;