Lines Matching defs:lock
221 char *lock, *unlock ;
222 int lockfd, /* lock device */
374 /* map the lock page */
375 lock = (char *)mmap(0,
381 if (lock == (char *)-1) {
386 return errret("can't map lock page",tmp.cm_devname) ;
388 cmap_grab->cm_lockp = (u_int *) lock ;
407 if( _dga_winlockat(cookie, &lock, &unlock) != 0 ) {
412 return errret("can't get lock pages", fn) ;
414 cmap_grab->cm_lockp = (u_int *) lock ;
1022 /* structure for allocating lock contexts. The identification