| /titanic_41/usr/src/lib/libast/common/vmalloc/ |
| H A D | vmprivate.c | 4 * Copyright (c) 1985-2010 AT&T Intellectual Property * 30 static char* Version = "\n@(#)$Id: Vmalloc (AT&T Research) 2010-01-01 $\0\n"; 34 ** Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94. 51 reg Vmdata_t* vd = vm->data; 52 reg Vmemory_f memoryf = vm->disc->memoryf; 53 reg Vmexcept_f exceptf = vm->disc->exceptf; 58 if(!_Vmtrace && vm == Vmheap && (vd->mode&VM_TRUST) ) 62 if(vd->incr <= 0) /* this is just _Vmheap on the first call */ 63 vd->incr = VMHEAPINCR; 69 if((size = ROUND(s,vd->incr)) < s) [all …]
|
| /titanic_41/usr/src/uts/sparc/sys/ |
| H A D | machlock.h | 57 typedef lock_t disp_lock_t; /* dispatcher lock type */ 60 * SPIN_LOCK() macro indicates whether lock is implemented as a spin lock or 66 * Macro to control loops which spin on a lock and then check state 68 * that if true indicates its a good time to get the scheduler lock and 69 * check the state of the current owner of the lock. 94 * - CLOCK_LEVEL must be less than or equal to LOCK_LEVEL 95 * - LOCK_LEVEL must be less than DISP_LEVEL 96 * - DISP_LEVEL should be as close to LOCK_LEVEL as possible 106 #define HIGH_LEVELS (PIL_MAX - LOCK_LEVEL) 111 * The mutex and semaphore code depends on being able to represent a lock [all …]
|
| /titanic_41/usr/src/uts/intel/sys/ |
| H A D | machlock.h | 61 typedef lock_t disp_lock_t; /* dispatcher lock type */ 64 * SPIN_LOCK() macro indicates whether lock is implemented as a spin lock or 70 * Macro to control loops which spin on a lock and then check state 72 * that if true indicates its a good time to get the scheduler lock and 73 * check the state of the current owner of the lock. 100 * - CLOCK_LEVEL must be less than or equal to LOCK_LEVEL 101 * - LOCK_LEVEL must be less than DISP_LEVEL 102 * - DISP_LEVEL should be as close to LOCK_LEVEL as possible 115 #define HIGH_LEVELS (PIL_MAX - LOCK_LEVEL) 119 * high-level PILs. It should equal: [all …]
|
| /titanic_41/usr/src/uts/common/fs/smbclnt/smbfs/ |
| H A D | smbfs_rwlock.c | 32 * A homegrown reader/writer lock implementation. It addresses 56 * Only can return non-zero if intr != 0. 62 mutex_enter(&l->lock); in smbfs_rw_enter_sig() 68 if (l->owner == curthread) { in smbfs_rw_enter_sig() 69 /* lock is held for writing by current thread */ in smbfs_rw_enter_sig() 71 l->count--; in smbfs_rw_enter_sig() 79 while (l->count < 0 || l->waiters > 0) { in smbfs_rw_enter_sig() 84 lwp->lwp_nostop++; in smbfs_rw_enter_sig() 85 if (!cv_wait_sig(&l->cv, &l->lock)) { in smbfs_rw_enter_sig() 87 lwp->lwp_nostop--; in smbfs_rw_enter_sig() [all …]
|
| /titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
| H A D | rc_file.c | 10 * This file of the Kerberos V5 software is derived from public-domain code 41 struct file_data *t = (struct file_data *)id->data; in rc_store() 46 rephash = hash(rep, t->hsize); in rc_store() 54 if (alive(context, rep, t->lifespan, time) == CMP_EXPIRED){ in rc_store() 58 for (ta = t->h[rephash]; ta; ta = ta->nh) { in rc_store() 59 switch(cmp(&ta->rep, rep)) in rc_store() 64 if (alive(context, &ta->rep, t->lifespan, time) == CMP_EXPIRED) in rc_store() 65 t->nummisses++; in rc_store() 67 t->numhits++; in rc_store() 76 ta->rep = *rep; in rc_store() [all …]
|
| /titanic_41/usr/src/man/man2/ |
| H A D | read.2 | 8 …formation Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifica… 15 read, readv, pread, preadv \- read from file 66 No data transfer will occur past the current end-of-file. If the starting 67 position is at or after the end-of-file, \fB0\fR will be returned. If the file 69 is implementation-dependent. 73 set (see \fBchmod\fR(2)), and there is a write lock owned by another process on 87 blocking record lock is removed. 97 indicate end-of-file. 166 portion of a regular file prior to the end-of-file has not been written, 181 value returned may be less than \fInbyte\fR if the number of bytes left in the [all …]
|
| H A D | write.2 | 8 …formation Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifica… 15 write, pwrite, writev, pwritev\- write on a file 84 is set (see \fBchmod\fR(2)), and there is a record lock owned by another 107 reaching a limit. A \fBwrite()\fR of 512-bytes returns 20. The next 108 \fBwrite()\fR of a non-zero number of bytes gives a failure return (except as 155 Write requests of \fB{PIPE_BUF}\fR bytes or less are guaranteed not to be 223 and the minimum value is non-zero, \fBwrite()\fR fails and sets \fBerrno\fR to 224 \fBERANGE\fR. Writing a zero-length buffer (\fInbyte\fR is zero) to a streams 226 zero-length buffer to a pipe or FIFO sends no message and zero is returned. 228 zero-length messages to be sent across the pipe or FIFO (see [all …]
|
| /titanic_41/usr/src/uts/common/fs/smbsrv/ |
| H A D | smb_read.c | 50 * may be less than the count requested only if a read specifies bytes 54 * length response is generated. A count returned which is less than the 67 sr->arg.rw = param; in smb_pre_read() 69 rc = smbsr_decode_vwv(sr, "wwlw", &sr->smb_fid, in smb_pre_read() 72 param->rw_offset = (uint64_t)off_low; in smb_pre_read() 73 param->rw_count = (uint32_t)count; in smb_pre_read() 74 param->rw_mincnt = 0; in smb_pre_read() 86 smb_rw_param_t *, sr->arg.rw); in smb_post_read() 88 kmem_free(sr->arg.rw, sizeof (smb_rw_param_t)); in smb_post_read() 94 smb_rw_param_t *param = sr->arg.rw; in smb_com_read() [all …]
|
| /titanic_41/usr/src/uts/sun4/sys/ |
| H A D | clock.h | 81 * Locking strategy for high-resolution timing services 88 * To minimize lock contention and cache thrashing we employ the 90 * on an acquisition-counting mutex, described below; readers (common) 91 * execute in parallel with no synchronization at all -- they don't 93 * readers just examine the writer lock's value before and after loading 98 * The writer lock, hres_lock, is a 32-bit integer consisting of an 99 * 8-bit lock and a 24-bit acquisition count. To acquire the lock we 100 * set the lock field with ldstub, which sets the low-order 8 bits to 101 * 0xff; to clear the lock, we increment it, which simultaneously clears 102 * the lock field (0xff --> 0x00) and increments the acquisition count [all …]
|
| /titanic_41/usr/src/man/man3c/ |
| H A D | pthread_rwlock_timedwrlock.3c | 6 …formation Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifica… 13 pthread_rwlock_timedwrlock, pthread_rwlock_reltimedwrlock_np \- lock a 14 read-write lock for writing 18 cc \fB-mt\fR [ \fIflag\fR... ] \fIfile\fR... [ \fIlibrary\fR... ] 35 The \fBpthread_rwlock_timedwrlock()\fR function applies a write lock to the 36 read-write lock referenced by \fIrwlock\fR as in the 37 \fBpthread_rwlock_wrlock\fR(3C) function. If the lock cannot be acquired 38 without waiting for other threads to unlock the lock, this wait will be 56 Under no circumstances does either function fail with a timeout if the lock can 58 not be checked if the lock can be immediately acquired. [all …]
|
| H A D | pthread_rwlock_timedrdlock.3c | 6 …formation Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifica… 13 pthread_rwlock_timedrdlock, pthread_rwlock_reltimedrdlock_np \- lock a 14 read-write lock for reading 18 cc \fB-mt\fR [ \fIflag\fR... ] \fIfile\fR... [ \fIlibrary\fR... ] 35 The \fBpthread_rwlock_timedrdlock()\fR function applies a read lock to the 36 read-write lock referenced by \fIrwlock\fR as in the 37 \fBpthread_rwlock_rdlock\fR(3C) function. If the lock cannot be acquired 38 without waiting for other threads to unlock the lock, this wait will be 56 Under no circumstances does either function fail with a timeout if the lock can 58 checked if the lock can be immediately acquired. [all …]
|
| H A D | lockf.3c | 5 …formation Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifica… 12 lockf \- record locking on files 26 \fBchmod\fR(2)). Calls to \fBlockf()\fR from other threads that attempt to lock 45 #define F_LOCK 1 /* lock section for exclusive use */ 46 #define F_TLOCK 2 /* test & lock section for exclusive use */ 57 \fBF_TEST\fR is used to detect if a lock by another process is present on the 58 specified section. \fBF_LOCK\fR and \fBF_TLOCK\fR both lock a section of a file 69 any future end-of-file). An area need not be allocated to the file in order to 70 be locked as such locks may exist past the end-of-file. 102 An \fBF_ULOCK\fR request in which \fIsize\fR is non-zero and the offset of the [all …]
|
| H A D | sem_timedwait.3c | 6 …formation Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifica… 13 sem_timedwait, sem_reltimedwait_np \- lock a semaphore 70 the calling process successfully performed the semaphore lock operation on the 72 the semaphore is be unchanged and the function returns -1 and sets \fBerrno\fR 95 nanoseconds field value less than zero or greater than or equal to 1,000 145 MT-Level MT-Safe
|
| /titanic_41/usr/src/cmd/lvm/md_monitord/ |
| H A D | md_monitord.c | 38 /* levels less than DEBUG_LEVEL_FORK */ 47 #define DAEMON_LOCK_FILE "/etc/lvm/.mdmonitord.lock" 67 "usage: mdmonitord [-d <debug_level>] [-t poll time]\n" in usage() 71 "with a debug_level less than %d.\n"), DEBUG_LEVEL_FORK); in usage() 72 exit(-1); in usage() 117 * Use an advisory lock to ensure that only one daemon process is 123 struct flock lock; in check_daemon_lock() local 125 monitord_print(1, gettext("check_daemon_lock: lock file = %s\n"), in check_daemon_lock() 130 monitord_print(0, "open(%s) - %s\n", daemon_lock_file, in check_daemon_lock() 132 monitord_exit(-1); in check_daemon_lock() [all …]
|
| /titanic_41/usr/src/uts/common/rpc/sec/ |
| H A D | svcauthdes.c | 36 * svcauth_des.c, server-side des authentication 40 * (2) The timestamp plus the window is less than the current time. 41 * (3) The timestamp is not less than the one previously 85 #define HASH(key) ((key) & (authdes_cachesz - 1)) 99 kmutex_t lock; /* cache entry lock */ member 104 static kmutex_t authdes_lock; /* cache table lock */ 166 area = (struct area *)rqst->rq_clntcred; in _svcauth_des() 167 cred = (struct authdes_cred *)&area->area_cred; in _svcauth_des() 173 ixdr = (int32_t *)msg->rm_call.cb_cred.oa_base; in _svcauth_des() 174 cred->adc_namekind = IXDR_GET_ENUM(ixdr, enum authdes_namekind); in _svcauth_des() [all …]
|
| /titanic_41/usr/src/man/man9f/ |
| H A D | ddi_periodic_add.9f | 9 ddi_periodic_add \- request periodic function invocation 60 If the value is greater than zero, but less than or equal to ten, the callback 64 This value must be in range of 0-10, which can be either an integer literal, a 65 pre-defined macro (\fBDDI_IPL_0\fR, ... , \fBDDI_IPL_10\fR), or the 84 \fBddi_periodic_add()\fR returns the non-zero opaque value 111 mutex_enter(&statep->lock); 115 mutex_exit(&statep->lock); 123 mutex_init(&statep->lock, NULL, MUTEX_DRIVER, DDI_IPL_0); 129 statep->periodic_id = ddi_periodic_add(my_periodic_func, 148 mutex_enter(&statep->lock); [all …]
|
| /titanic_41/usr/src/uts/common/io/audio/impl/ |
| H A D | audio_output.c | 22 * Copyright (C) 4Front Technologies 1996-2008. 42 int nch = eng->e_nchan; \ 43 uint_t hidx = eng->e_hidx; \ 44 TYPE *out = (void *)eng->e_data; \ 51 int incr = eng->e_chincr[ch]; \ 54 op = out + eng->e_choffs[ch] + (hidx * incr); \ 55 ip = eng->e_chbufs[ch]; \ 67 } while (--i); \ 88 int nchan = eng->e_nchan; in auimpl_output_limiter() 89 uint_t fragfr = eng->e_fragfr; in auimpl_output_limiter() [all …]
|
| /titanic_41/usr/src/lib/libmail/common/ |
| H A D | maillock.c | 43 static char *lockext = ".lock"; /* Lock suffix for mailname */ 44 static char curlock[PATHSIZE]; /* Last used name of lock */ 46 static time_t locktime; /* time lock file was touched */ 50 * Lock the specified mail file by setting the file mailfile.lock. 51 * We must, of course, be careful to remove the lock file by a call 53 * the lock exists, and if it does, to check its modify time. If it 65 char locktmp[PATHSIZE]; /* Usable lock temporary */ in maillock() 88 return (-1); in maillock() 96 * of the lock file, rather than with the current in maillock() 99 * ours. If the lock file is less than 5 minutes in maillock() [all …]
|
| /titanic_41/usr/src/uts/sparc/v9/ml/ |
| H A D | lock_prim.s | 80 * MEMORY BARRIERS -- see atomic.h for full descriptions. 144 * - returns non-zero on success. 145 * - doesn't block interrupts so don't use this to spin on a lock. 146 * - uses "0xFF is busy, anything else is free" model. 148 * ulock_try() is for a lock in the user address space. 200 ldstub [%o0], %o1 ! try to set lock, get value in %o1 213 ldstub [%o0], %o1 ! try to set lock, get value in %o1 246 ldstuba [%o0]ASI_USER, %o1 ! try to set lock, get value in %o1 247 xor %o1, 0xff, %o0 ! delay - return non-zero if success 255 stba %g0, [%o0]ASI_USER ! clear lock [all …]
|
| /titanic_41/usr/src/cmd/sendmail/db/include/ |
| H A D | mp.h | 1 /*- 38 * region lock to provide mutual exclusion while reading/modifying all of 39 * the data structures, including the buffer headers. We use a per-buffer 40 * header lock to wait on buffer I/O. The order of locking is as follows: 43 * Acquire the region lock. 47 * Release the region lock. 51 * Request the buffer lock. 53 * Acquire the buffer lock. 54 * Release the buffer lock. 55 * Acquire the region lock. [all …]
|
| H A D | btree.h | 1 /*- 66 #define __BT_LPUT(dbc, lock) \ argument 67 (F_ISSET((dbc)->dbp, DB_AM_LOCKING) ? \ 68 lock_put((dbc)->dbp->dbenv->lk_info, lock) : 0) 69 #define __BT_TLPUT(dbc, lock) \ argument 70 (F_ISSET((dbc)->dbp, DB_AM_LOCKING) && (dbc)->txn == NULL ? \ 71 lock_put((dbc)->dbp->dbenv->lk_info, lock) : 0) 76 * Note, internal page searches must find the largest record less than key in 95 #define S_PARENT 0x00800 /* Lock page pair. */ 100 * return an entry one past end-of-page. [all …]
|
| /titanic_41/usr/src/uts/common/io/cxgbe/t4nex/ |
| H A D | adapter.h | 15 * Copyright (C) 2011-2013 Chelsio Communications. All rights reserved. 78 #define IS_DOOMED(pi) (pi->flags & DOOMED) 79 #define SET_DOOMED(pi) do { pi->flags |= DOOMED; } while (0) 80 #define IS_BUSY(sc) (sc->flags & CXGBE_BUSY) 81 #define SET_BUSY(sc) do { sc->flags |= CXGBE_BUSY; } while (0) 82 #define CLR_BUSY(sc) do { sc->flags &= ~CXGBE_BUSY; } while (0) 87 kmutex_t lock; member 216 kmutex_t lock; member 239 #define FL_RUNNING_LOW(fl) (fl->cap - fl->needed <= fl->lowat) 240 #define FL_NOT_RUNNING_LOW(fl) (fl->cap - fl->needed >= 2 * fl->lowat) [all …]
|
| /titanic_41/usr/src/man/man1m/ |
| H A D | growfs.1m | 9 growfs \- non-destructively expand a UFS file system 13 \fB/usr/sbin/growfs\fR [\fB-M\fR \fImount-point\fR] [\fInewfs-options\fR] 14 [\fIraw-device\fR] 20 \fBgrowfs\fR non-destructively expands a mounted or unmounted UNIX file system 29 \fBgrowfs\fR will ``write-lock'' (see \fBlockfs\fR(1M)) a mounted file system 30 when expanding. The length of time the file system is write-locked can be 33 using the \fB-s\fR option to specify the total size of the new file system at 34 each stage. The argument for \fB-s\fR is the number of sectors, and must be a 36 cylinder size of less than 2 is specified. Refer to the \fBnewfs\fR(1M) man 60 \fB\fB-M\fR \fImount-point\fR\fR [all …]
|
| /titanic_41/usr/src/uts/common/io/bnxe/577xx/drivers/common/include/l4/ |
| H A D | mm_l4if.h | 2 * mm_l4if.h - L4 mm interface 13 #define mm_acquire_tcp_lock(_pdev, con) LOCK() 16 #define MM_ACQUIRE_TOE_LOCK(_pdev) LOCK() 19 #define MM_ACQUIRE_TOE_GRQ_LOCK(_pdev, idx) LOCK() 22 #define MM_ACQUIRE_TOE_GRQ_LOCK_DPC(_pdev, idx) LOCK() 102 DbgMessage(pdev, INFORMl4, "Acquiring tcp lock for con %p\n", tcp_con); in mm_acquire_tcp_lock() 109 DbgMessage(pdev, INFORMl4, "Releasing tcp lock for con %p\n", tcp_con); in mm_release_tcp_lock() 112 #define MM_ACQUIRE_TOE_LOCK(_pdev) DbgMessage(pdev, INFORMl4, "Acquiring global toe lock\n… 113 #define MM_RELEASE_TOE_LOCK(_pdev) DbgMessage(pdev, INFORMl4, "Releasing global toe lock\n… 114 … MM_ACQUIRE_TOE_GRQ_LOCK(_pdev, idx) DbgMessage(pdev, INFORMl4, "Acquiring global toe grq lock\n"); [all …]
|
| /titanic_41/usr/src/uts/common/io/mr_sas/ |
| H A D | ld_pd_map.h | 5 * Copyright (c) 2008-2012, LSI Logic Corporation. 24 /* raid->write_mode; raid->read_ahead; dcmd->state */ 66 MR_LD_SPAN_MAP ldSpanMap[MAX_LOGICAL_DRIVES - 1]; 76 U16 timeoutValue; /* 0x02 -0x03 */ 79 U16 ldTargetId; /* 0x06 - 0x07 */ 80 U64 regLockRowLBA; /* 0x08 - 0x0F */ 81 U32 regLockLength; /* 0x10 - 0x13 */ 82 U16 nextLMId; /* 0x14 - 0x15 */ 88 U16 configSeqNum; /* 0x1A -0x1B */ 90 U8 resvd2[3]; /* 0x1D-0x1f */ [all …]
|