Home
last modified time | relevance | path

Searched refs:ct (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/titanic_44/usr/src/uts/common/os/
H A Dcallout.c156 #define CALLOUT_APPEND(ct, cp) \ argument
157 CALLOUT_HASH_APPEND(ct->ct_idhash[CALLOUT_IDHASH(cp->c_xid)], \
161 #define CALLOUT_DELETE(ct, cp) \ argument
162 CALLOUT_HASH_DELETE(ct->ct_idhash[CALLOUT_IDHASH(cp->c_xid)], \
193 #define CALLOUT_EXEC_COMPUTE(ct, nextexp, exec) \ argument
197 cl = ct->ct_expired.ch_head; \
242 #define CALLOUT_LIST_FREE(ct, cl) \ argument
244 cl->cl_next = ct->ct_lfree; \
245 ct->ct_lfree = cl; \
252 #define CALLOUT_FREE(ct, cl) \ argument
[all …]
H A Dcontract.c260 contract_dtor(contract_t *ct) in contract_dtor() argument
262 cte_queue_destroy(&ct->ct_events); in contract_dtor()
263 list_destroy(&ct->ct_vnodes); in contract_dtor()
264 mutex_destroy(&ct->ct_reflock); in contract_dtor()
265 mutex_destroy(&ct->ct_lock); in contract_dtor()
266 mutex_destroy(&ct->ct_evtlock); in contract_dtor()
284 contract_ctor(contract_t *ct, ct_type_t *type, ct_template_t *tmpl, void *data, in contract_ctor() argument
292 mutex_init(&ct->ct_lock, NULL, MUTEX_DEFAULT, NULL); in contract_ctor()
293 mutex_init(&ct->ct_reflock, NULL, MUTEX_DEFAULT, NULL); in contract_ctor()
294 mutex_init(&ct->ct_evtlock, NULL, MUTEX_DEFAULT, NULL); in contract_ctor()
[all …]
H A Dsunmdi.c219 static int i_mdi_lba_lb(mdi_client_t *ct,
1228 mdi_client_t *ct = NULL; in i_devi_get_client() local
1231 ct = (mdi_client_t *)DEVI(cdip)->devi_mdi_client; in i_devi_get_client()
1233 return (ct); in i_devi_get_client()
1274 i_mdi_client_lock(mdi_client_t *ct, mdi_pathinfo_t *pip) in i_mdi_client_lock() argument
1280 while (MDI_CLIENT_TRYLOCK(ct) == 0) { in i_mdi_client_lock()
1284 MDI_CLIENT_LOCK(ct); in i_mdi_client_lock()
1301 MDI_CLIENT_LOCK(ct); in i_mdi_client_lock()
1310 i_mdi_client_unlock(mdi_client_t *ct) in i_mdi_client_unlock() argument
1312 MDI_CLIENT_UNLOCK(ct); in i_mdi_client_unlock()
[all …]
H A Dcallb.c93 static callb_table_t *ct = &callb_table; variable
120 mutex_enter(&ct->ct_lock); in callb_add_common()
121 while (ct->ct_busy) in callb_add_common()
122 cv_wait(&ct->ct_busy_cv, &ct->ct_lock); in callb_add_common()
123 if ((cp = ct->ct_freelist) == NULL) { in callb_add_common()
124 ct->ct_ncallb++; in callb_add_common()
127 ct->ct_freelist = cp->c_next; in callb_add_common()
145 cp->c_next = ct->ct_first_cb[class]; in callb_add_common()
146 ct->ct_first_cb[class] = cp; in callb_add_common()
148 mutex_exit(&ct->ct_lock); in callb_add_common()
[all …]
/titanic_44/usr/src/lib/libnsl/rpc/
H A Dclnt_vc.c142 struct ct_data *ct; member
178 set_blocking_connection(struct ct_data *ct, bool_t blocking) in set_blocking_connection() argument
186 if (ct->ct_is_blocking == blocking) in set_blocking_connection()
189 if ((flag = fcntl(ct->ct_fd, F_GETFL, 0)) < 0) { in set_blocking_connection()
196 if (fcntl(ct->ct_fd, F_SETFL, flag) != 0) { in set_blocking_connection()
201 ct->ct_is_blocking = blocking; in set_blocking_connection()
240 struct ct_data *ct; /* private data */ in _clnt_vc_create_timed() local
247 if ((ct = malloc(sizeof (*ct))) != NULL) in _clnt_vc_create_timed()
248 ct->ct_addr.buf = NULL; in _clnt_vc_create_timed()
250 if ((cl == NULL) || (ct == NULL)) { in _clnt_vc_create_timed()
[all …]
/titanic_44/usr/src/ucblib/librpcsoc/
H A Dclnt_tcp.c119 register struct ct_data *ct; local
131 ct = (struct ct_data *)mem_alloc(sizeof (*ct));
132 if (ct == NULL) {
146 mem_free((caddr_t)ct, sizeof (struct ct_data));
167 ct->ct_closeit = TRUE;
169 ct->ct_closeit = FALSE;
175 ct->ct_sock = *sockp;
176 ct->ct_wait.tv_usec = 0;
177 ct->ct_waitset = FALSE;
178 ct->ct_addr = *raddr;
[all …]
/titanic_44/usr/src/stand/lib/fs/nfs/
H A Dclnt_btcp.c124 struct ct_data *ct; in clntbtcp_create() local
139 ct = (struct ct_data *)bkmem_alloc(sizeof (*ct)); in clntbtcp_create()
140 if (ct == NULL) { in clntbtcp_create()
217 ct->ct_closeit = TRUE; in clntbtcp_create()
219 ct->ct_closeit = FALSE; in clntbtcp_create()
224 ct->ct_sock = *sockp; in clntbtcp_create()
225 ct->ct_wait_msec = 0; in clntbtcp_create()
226 ct->ct_total.tv_sec = wait.tv_sec; in clntbtcp_create()
227 ct->ct_total.tv_usec = -1; in clntbtcp_create()
228 ct->ct_raddr = *raddr; in clntbtcp_create()
[all …]
/titanic_44/usr/src/uts/common/fs/nfs/
H A Dnfs4_deleg_ops.c63 recall_all_delegations(rfs4_file_t *fp, bool_t trunc, caller_context_t *ct) in recall_all_delegations() argument
79 if (ct != NULL && ct->cc_flags & CC_DONTBLOCK) { in recall_all_delegations()
81 ct->cc_flags |= CC_WOULDBLOCK; in recall_all_delegations()
101 deleg_rd_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) in deleg_rd_open() argument
113 if ((ct == NULL || ct->cc_caller_id != nfs4_srv_caller_id) && in deleg_rd_open()
116 rc = recall_all_delegations(fp, FALSE, ct); in deleg_rd_open()
121 return (vnext_open(arg, mode, cr, ct)); in deleg_rd_open()
126 deleg_wr_open(femarg_t *arg, int mode, cred_t *cr, caller_context_t *ct) in deleg_wr_open() argument
138 if (ct == NULL || ct->cc_caller_id != nfs4_srv_caller_id) { in deleg_wr_open()
140 rc = recall_all_delegations(fp, FALSE, ct); in deleg_wr_open()
[all …]
/titanic_44/usr/src/uts/common/sys/
H A Dfem.h152 caller_context_t *ct); \
155 caller_context_t *ct); \
157 cred_t *cr, caller_context_t *ct); \
159 cred_t *cr, caller_context_t *ct); \
162 caller_context_t *ct); \
164 cred_t *cr, caller_context_t *ct); \
166 cred_t *cr, caller_context_t *ct); \
168 cred_t *cr, caller_context_t *ct); \
170 cred_t *cr, caller_context_t *ct); \
173 cred_t *cr, caller_context_t *ct, \
[all …]
H A Dmdi_impldefs.h554 #define MDI_CLIENT_LOCK(ct) mutex_enter(&(ct)->ct_mutex) argument
555 #define MDI_CLIENT_TRYLOCK(ct) mutex_tryenter(&(ct)->ct_mutex) argument
556 #define MDI_CLIENT_UNLOCK(ct) mutex_exit(&(ct)->ct_mutex) argument
558 #define MDI_CLIENT_LOCKED(ct) MUTEX_HELD(&(ct)->ct_mutex) argument
567 #define MDI_CLIENT_UNSTABLE(ct) (ct)->ct_unstable++; argument
568 #define MDI_CLIENT_STABLE(ct) { \ argument
569 (ct)->ct_unstable--; \
570 if ((ct)->ct_unstable == 0) { \
571 cv_broadcast(&(ct)->ct_unstable_cv); \
589 #define MDI_CLIENT_SET_OFFLINE(ct) {\ argument
[all …]
H A Dvnode.h1031 #define VOP_OPEN(vpp, mode, cr, ct) \ argument
1032 fop_open(vpp, mode, cr, ct)
1033 #define VOP_CLOSE(vp, f, c, o, cr, ct) \ argument
1034 fop_close(vp, f, c, o, cr, ct)
1035 #define VOP_READ(vp, uiop, iof, cr, ct) \ argument
1036 fop_read(vp, uiop, iof, cr, ct)
1037 #define VOP_WRITE(vp, uiop, iof, cr, ct) \ argument
1038 fop_write(vp, uiop, iof, cr, ct)
1039 #define VOP_IOCTL(vp, cmd, a, f, cr, rvp, ct) \ argument
1040 fop_ioctl(vp, cmd, a, f, cr, rvp, ct)
[all …]
/titanic_44/usr/src/uts/common/fs/smbsrv/
H A Dsmb_fem.c225 caller_context_t *ct, in smb_fem_fcn_create() argument
236 ct, vsecp); in smb_fem_fcn_create()
238 if (error == 0 && ct != &smb_ct) in smb_fem_fcn_create()
260 caller_context_t *ct, in smb_fem_fcn_remove() argument
270 error = vnext_remove(arg, name, cr, ct, flags); in smb_fem_fcn_remove()
272 if (error == 0 && ct != &smb_ct) in smb_fem_fcn_remove()
285 caller_context_t *ct, in smb_fem_fcn_rename() argument
295 error = vnext_rename(arg, snm, tdvp, tnm, cr, ct, flags); in smb_fem_fcn_rename()
297 if (error == 0 && ct != &smb_ct) { in smb_fem_fcn_rename()
319 caller_context_t *ct, in smb_fem_fcn_mkdir() argument
[all …]
/titanic_44/usr/src/uts/common/fs/doorfs/
H A Ddoor_sys.c507 door_client_t *ct; /* curthread door_data */ in door_call() local
523 ct = door_my_client(1); in door_call()
530 if (copyin(args, &ct->d_args, sizeof (door_arg_t)) != 0) in door_call()
537 ct->d_args.data_ptr = in door_call()
539 ct->d_args.data_size = da32.data_size; in door_call()
540 ct->d_args.desc_ptr = in door_call()
542 ct->d_args.desc_num = da32.desc_num; in door_call()
543 ct->d_args.rbuf = in door_call()
545 ct->d_args.rsize = da32.rsize; in door_call()
549 ct->d_noresults = 1; in door_call()
[all …]
/titanic_44/usr/src/uts/common/fs/lofs/
H A Dlofs_vnops.c51 lo_open(vnode_t **vpp, int flag, struct cred *cr, caller_context_t *ct) in lo_open() argument
70 error = VOP_OPEN(&rvp, flag, cr, ct); in lo_open()
110 caller_context_t *ct) in lo_close() argument
116 return (VOP_CLOSE(vp, flag, count, offset, cr, ct)); in lo_close()
121 caller_context_t *ct) in lo_read() argument
127 return (VOP_READ(vp, uiop, ioflag, cr, ct)); in lo_read()
132 caller_context_t *ct) in lo_write() argument
138 return (VOP_WRITE(vp, uiop, ioflag, cr, ct)); in lo_write()
149 caller_context_t *ct) in lo_ioctl() argument
155 return (VOP_IOCTL(vp, cmd, arg, flag, cr, rvalp, ct)); in lo_ioctl()
[all …]
/titanic_44/usr/src/uts/common/contract/
H A Dprocess.c229 contract_t *ct; in ctmpl_process_set() local
258 ct = contract_type_ptr(process_type, param_value, in ctmpl_process_set()
260 if (ct == NULL) in ctmpl_process_set()
262 if (ct->ct_owner != curproc) { in ctmpl_process_set()
263 contract_rele(ct); in ctmpl_process_set()
266 if (((cont_process_t *)ct->ct_data)->conp_nmembers) { in ctmpl_process_set()
267 contract_rele(ct); in ctmpl_process_set()
271 ct = NULL; in ctmpl_process_set()
275 ctp->ctp_subsume = ct; in ctmpl_process_set()
462 contract_process_free(contract_t *ct) in contract_process_free() argument
[all …]
/titanic_44/usr/src/uts/common/fs/ctfs/
H A Dctfs_ctl.c92 contract_t *ct = ctlnode->ctfs_ctl_contract; in ctfs_ctl_access() local
97 mutex_enter(&ct->ct_lock); in ctfs_ctl_access()
98 if ((curproc == ct->ct_owner) || in ctfs_ctl_access()
99 (ct->ct_owner == NULL && ct->ct_regent != NULL && in ctfs_ctl_access()
100 ct->ct_regent->ct_data == curproc->p_ct_process)) { in ctfs_ctl_access()
101 mutex_exit(&ct->ct_lock); in ctfs_ctl_access()
105 mutex_exit(&ct->ct_lock); in ctfs_ctl_access()
116 ctfs_ctl_open(vnode_t **vpp, int flag, cred_t *cr, caller_context_t *ct) in ctfs_ctl_open() argument
121 return (ctfs_ctl_access(*vpp, VWRITE, 0, cr, ct)); in ctfs_ctl_open()
153 cred_t *cr, caller_context_t *ct) in ctfs_ctl_getattr() argument
[all …]
H A Dctfs_cdir.c68 ctfs_create_cdirnode(vnode_t *pvp, contract_t *ct) in ctfs_create_cdirnode() argument
73 if ((vp = contract_vnode_get(ct, pvp->v_vfsp)) != NULL) in ctfs_create_cdirnode()
84 gfs_file_set_inode(vp, CTFS_INO_CT_DIR(ct->ct_id)); in ctfs_create_cdirnode()
86 cdir->ctfs_cn_contract = ct; in ctfs_create_cdirnode()
87 contract_hold(ct); in ctfs_create_cdirnode()
88 contract_vnode_set(ct, &cdir->ctfs_cn_linkage, vp); in ctfs_create_cdirnode()
103 caller_context_t *ct) in ctfs_cdir_getattr() argument
140 contract_t *ct = cdirnode->ctfs_cn_contract; in ctfs_cdir_inactive() local
142 mutex_enter(&ct->ct_lock); in ctfs_cdir_inactive()
144 mutex_exit(&ct->ct_lock); in ctfs_cdir_inactive()
[all …]
H A Dctfs_sym.c57 ctfs_create_symnode(vnode_t *pvp, contract_t *ct) in ctfs_create_symnode() argument
67 symnode->ctfs_sn_contract = ct; in ctfs_create_symnode()
69 ct->ct_type->ct_type_name, (long)ct->ct_id) + 1; in ctfs_create_symnode()
72 ct->ct_type->ct_type_name, (long)ct->ct_id) < len); in ctfs_create_symnode()
74 contract_hold(ct); in ctfs_create_symnode()
89 caller_context_t *ct) in ctfs_sym_getattr() argument
112 ctfs_sym_readlink(vnode_t *vp, uio_t *uiop, cred_t *cr, caller_context_t *ct) in ctfs_sym_readlink() argument
125 ctfs_sym_inactive(vnode_t *vp, cred_t *cr, caller_context_t *ct) in ctfs_sym_inactive() argument
/titanic_44/usr/src/lib/smbsrv/libfksmbsrv/common/sys/
H A Dvnode.h1026 #define VOP_OPEN(vpp, mode, cr, ct) \ argument
1027 fop_open(vpp, mode, cr, ct)
1028 #define VOP_CLOSE(vp, f, c, o, cr, ct) \ argument
1029 fop_close(vp, f, c, o, cr, ct)
1030 #define VOP_READ(vp, uiop, iof, cr, ct) \ argument
1031 fop_read(vp, uiop, iof, cr, ct)
1032 #define VOP_WRITE(vp, uiop, iof, cr, ct) \ argument
1033 fop_write(vp, uiop, iof, cr, ct)
1034 #define VOP_IOCTL(vp, cmd, a, f, cr, rvp, ct) \ argument
1035 fop_ioctl(vp, cmd, a, f, cr, rvp, ct)
[all …]
/titanic_44/usr/src/uts/common/fs/dev/
H A Dsdev_vnops.c319 sdev_open(struct vnode **vpp, int flag, struct cred *cred, caller_context_t *ct) in sdev_open() argument
343 error = VOP_OPEN(&(dv->sdev_attrvp), flag, cred, ct); in sdev_open()
351 offset_t offset, struct cred *cred, caller_context_t *ct) in sdev_close() argument
369 return (VOP_CLOSE(dv->sdev_attrvp, flag, count, offset, cred, ct)); in sdev_close()
375 struct caller_context *ct) in sdev_read() argument
393 (void) VOP_RWLOCK(dv->sdev_attrvp, 0, ct); in sdev_read()
394 error = VOP_READ(dv->sdev_attrvp, uio, ioflag, cred, ct); in sdev_read()
395 VOP_RWUNLOCK(dv->sdev_attrvp, 0, ct); in sdev_read()
402 struct caller_context *ct) in sdev_write() argument
420 (void) VOP_RWLOCK(dv->sdev_attrvp, 1, ct); in sdev_write()
[all …]
/titanic_44/usr/src/cmd/eqn/
H A De.y65 matrix : MATRIX { $$ = ct; } ;
77 lcol : LCOL { $$ = ct++; } ;
78 ccol : CCOL { $$ = ct++; } ;
79 rcol : RCOL { $$ = ct++; } ;
80 col : COL { $$ = ct++; } ;
95 | lpile '{' list '}' { lpile('L', $1, ct); ct = $1; }
96 | cpile '{' list '}' { lpile('C', $1, ct); ct = $1; }
97 | rpile '{' list '}' { lpile('R', $1, ct); ct = $1; }
98 | pile '{' list '}' { lpile('-', $1, ct); ct = $1; }
155 list : eqn { lp[ct++] = $1; }
[all …]
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dcontract.c93 contract_t ct; in cmd_contract() local
109 if (mdb_vread(&ct, sizeof (ct), addr) != sizeof (ct)) { in cmd_contract()
113 if (mdb_vread(&ctt, sizeof (ctt), (uintptr_t)ct.ct_type) != in cmd_contract()
115 mdb_warn("error reading ct_type_t at %p", ct.ct_type); in cmd_contract()
124 mdb_printf("%0?p %8d %8s %8s %?p %?p\n", addr, ct.ct_id, str, in cmd_contract()
125 (ct.ct_state == CTS_OWNED) ? "owned" : in cmd_contract()
126 (ct.ct_state == CTS_INHERITED) ? "inherit" : in cmd_contract()
127 (ct.ct_state == CTS_ORPHAN) ? "orphan" : "dead", in cmd_contract()
128 ct.ct_owner, ct.ct_regent); in cmd_contract()
173 findct(uintptr_t addr, contract_t *ct, findct_data_t *arg) in findct() argument
[all …]
/titanic_44/usr/src/uts/common/fs/namefs/
H A Dnamevno.c77 nm_open(vnode_t **vpp, int flag, cred_t *crp, caller_context_t *ct) in nm_open() argument
95 if ((error = VOP_OPEN(&outfilevp, flag, crp, ct)) != 0) { in nm_open()
164 caller_context_t *ct) in nm_close() argument
171 error = VOP_CLOSE(nodep->nm_filevp, flag, count, offset, crp, ct); in nm_close()
173 (void) VOP_FSYNC(nodep->nm_filevp, FSYNC, crp, ct); in nm_close()
193 caller_context_t *ct) in nm_read() argument
195 return (VOP_READ(VTONM(vp)->nm_filevp, uiop, ioflag, crp, ct)); in nm_read()
200 caller_context_t *ct) in nm_write() argument
202 return (VOP_WRITE(VTONM(vp)->nm_filevp, uiop, ioflag, crp, ct)); in nm_write()
207 caller_context_t *ct) in nm_ioctl() argument
[all …]
/titanic_44/usr/src/uts/common/fs/
H A Dfem.c434 vhead_open(vnode_t **vpp, int mode, cred_t *cr, caller_context_t *ct) in vhead_open() argument
446 errc = (*func)(arg0, mode, cr, ct); in vhead_open()
453 errc = (*func)(arg0, mode, cr, ct); in vhead_open()
461 caller_context_t *ct) in vhead_close() argument
473 errc = (*func)(arg0, flag, count, offset, cr, ct); in vhead_close()
480 errc = (*func)(arg0, flag, count, offset, cr, ct); in vhead_close()
488 caller_context_t *ct) in vhead_read() argument
500 errc = (*func)(arg0, uiop, ioflag, cr, ct); in vhead_read()
507 errc = (*func)(arg0, uiop, ioflag, cr, ct); in vhead_read()
515 caller_context_t *ct) in vhead_write() argument
[all …]
/titanic_44/usr/src/cmd/sendmail/src/
H A Dratectrl.c392 CTime_T *ct = &chBest->ch_Times[ticks % CHTSIZE]; local
394 if (ct->ct_Ticks != ticks)
396 ct->ct_Ticks = ticks;
397 ct->ct_Count = 0;
399 ++ct->ct_Count;
406 CTime_T *ct = &chBest->ch_Times[i]; local
408 if (ct->ct_Ticks <= ticks && ct->ct_Ticks >= ticks - CHTSIZE)
409 cnt += ct->ct_Count;
441 CTime_T *ct; local
458 ct = &srv_Times[ticks % CHTSIZE];
[all …]

12345678910>>...12