/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_create.c | 33 mdb_module_t *mp; local 35 if ((mp = mdb_module_load_builtin("kmdb_kvm")) != NULL) 36 mp->mod_tgt_ctor = kmdb_kvm_create;
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_proc.c | 43 proc_init(fmd_module_t *mp) argument 50 proc_fini(fmd_module_t *mp) argument
|
H A D | fmd_builtin.c | 42 bltin_init(fmd_module_t *mp) argument 47 if (strcmp(mp->mod_name, bp->bltin_name) == 0) 57 mp->mod_data = (void *)bp; 58 (void) pthread_mutex_unlock(&mp->mod_lock); 64 if (fmd_module_enter(mp, bp->bltin_init) != 0 && mp->mod_info != NULL) 65 fmd_hdl_unregister((fmd_hdl_t *)mp); 67 fmd_module_exit(mp); 68 (void) pthread_mutex_lock(&mp->mod_lock); 70 if (mp 77 bltin_fini(fmd_module_t *mp) argument [all...] |
H A D | fmd_rtld.c | 46 rtld_init(fmd_module_t *mp) argument 51 if ((dlp = dlopen(mp->mod_path, RTLD_LOCAL | RTLD_NOW)) == NULL) { 56 rp = mp->mod_data = fmd_alloc(sizeof (fmd_rtld_t), FMD_SLEEP); 68 (void) pthread_mutex_unlock(&mp->mod_lock); 74 if (fmd_module_enter(mp, rp->rtld_init) != 0 && mp->mod_info != NULL) 75 fmd_hdl_unregister((fmd_hdl_t *)mp); 77 fmd_module_exit(mp); 78 (void) pthread_mutex_lock(&mp->mod_lock); 80 if (mp 90 rtld_fini(fmd_module_t *mp) argument [all...] |
H A D | fmd_thread.c | 35 fmd_thread_xcreate(fmd_module_t *mp, pthread_t tid) argument 39 tp->thr_mod = mp; 73 fmd_thread_create_cmn(fmd_module_t *mp, fmd_thread_f *func, void *arg, argument 80 tp->thr_mod = mp; 110 fmd_thread_create(fmd_module_t *mp, fmd_thread_f *func, void *arg) argument 112 return (fmd_thread_create_cmn(mp, func, arg, 0)); 116 fmd_doorthread_create(fmd_module_t *mp, fmd_thread_f *func, void *arg) argument 118 return (fmd_thread_create_cmn(mp, func, arg, 1));
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | calloc.c | 43 void *mp; local 57 return ((mp = malloc(total)) ? memset(mp, 0, total) : mp);
|
/illumos-gate/usr/src/lib/libmapmalloc/common/ |
H A D | calloc.c | 38 void *mp; local 53 mp = malloc(total); 54 if (mp == NULL) 56 (void) memset(mp, 0, total); 57 return (mp);
|
/illumos-gate/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_fput.c | 22 #include "mp.h" 37 MPOOL *mp; local 41 mp = dbmp->mp; 89 ++mp->stat.st_page_clean; 90 --mp->stat.st_page_dirty; 94 --mp->stat.st_page_clean; 95 ++mp->stat.st_page_dirty; 123 SH_TAILQ_REMOVE(&mp->bhq, bhp, q, __bh); 125 SH_TAILQ_INSERT_HEAD(&mp [all...] |
H A D | mp_fset.c | 22 #include "mp.h" 37 MPOOL *mp; local 41 mp = dbmp->mp; 69 ++mp->stat.st_page_clean; 70 --mp->stat.st_page_dirty; 74 --mp->stat.st_page_clean; 75 ++mp->stat.st_page_dirty;
|
/illumos-gate/usr/src/lib/libast/common/misc/ |
H A D | mimetype.c | 37 drop(Mime_t* mp) argument 39 if (mp->magic) 41 magicclose(mp->magic); 42 mp->magic = 0; 51 mimetype(Mime_t* mp, Sfio_t* fp, const char* file, struct stat* st) argument 53 if (mp->disc->flags & MIME_NOMAGIC) 55 if (!mp->magic) 57 mp->magicd.version = MAGIC_VERSION; 58 mp->magicd.flags = MAGIC_MIME; 59 mp [all...] |
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | calloc.c | 50 ptr_t mp; local 54 mp = malloc(num); 55 if (mp == NULL) 57 bzero(mp, num); 58 return ((ptr_t)(mp));
|
/illumos-gate/usr/src/lib/libbe/common/ |
H A D | be_rename.c | 72 char *mp = NULL; local 199 if (zfs_is_mounted(zhp, &mp) && mp == NULL) { 209 &fld, mp)) != BE_SUCCESS) {
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | lwp.c | 37 _lwp_mutex_lock(mutex_t *mp) argument 39 if (set_lock_byte(&mp->mutex_lockw) == 0) 41 return (___lwp_mutex_timedlock(mp, NULL, NULL)); 45 _lwp_mutex_trylock(mutex_t *mp) argument 47 if (set_lock_byte(&mp->mutex_lockw) == 0)
|
H A D | lwp_cond.c | 37 _lwp_cond_wait(cond_t *cv, mutex_t *mp) argument 41 error = ___lwp_cond_wait(cv, mp, NULL, 0); 42 if (mp->mutex_type & (PTHREAD_PRIO_INHERIT|PTHREAD_PRIO_PROTECT)) 43 (void) ___lwp_mutex_timedlock(mp, NULL, NULL); 45 (void) _lwp_mutex_lock(mp); 50 _lwp_cond_reltimedwait(cond_t *cv, mutex_t *mp, timespec_t *relts) argument 57 error = ___lwp_cond_wait(cv, mp, relts, 0); 58 if (mp->mutex_type & (PTHREAD_PRIO_INHERIT|PTHREAD_PRIO_PROTECT)) 59 (void) ___lwp_mutex_timedlock(mp, NULL, NULL); 61 (void) _lwp_mutex_lock(mp); 66 _lwp_cond_timedwait(cond_t *cv, mutex_t *mp, timespec_t *absts) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_create.c | 41 mdb_module_t *mp; local 43 if ((mp = mdb_module_load_builtin("mdb_kvm")) != NULL) 44 mp->mod_tgt_ctor = mdb_kvm_tgt_create; 46 if ((mp = mdb_module_load_builtin("mdb_proc")) != NULL) 47 mp->mod_tgt_ctor = mdb_proc_tgt_create; 49 if ((mp = mdb_module_load_builtin("mdb_kproc")) != NULL) 50 mp->mod_tgt_ctor = mdb_kproc_tgt_create; 52 if ((mp = mdb_module_load_builtin("mdb_raw")) != NULL) 53 mp->mod_tgt_ctor = mdb_rawfile_tgt_create;
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | misc.c | 68 mblk_t *m, *mp; local 70 for (m = min, mp = NULL; (m != NULL) && (len > 0); m = m->b_cont) { 71 mp = m; 92 if ((m == NULL) && (mp != NULL)) { 94 mlen = mp->b_datap->db_lim - mp->b_wptr; 98 BCOPY(bp, mp->b_wptr, mlen); 101 mp->b_wptr += mlen; 104 mp->b_datap->db_struiolim = mp [all...] |
/illumos-gate/usr/src/uts/common/os/ |
H A D | rmap.c | 49 rmfreemap(void *mp) argument 51 vmem_destroy(mp); 55 rmalloc(void *mp, size_t size) argument 57 return ((ulong_t)vmem_alloc(mp, size, VM_NOSLEEP)); 61 rmalloc_wait(void *mp, size_t size) argument 63 return ((ulong_t)vmem_alloc(mp, size, VM_SLEEP)); 67 rmfree(void *mp, size_t size, ulong_t addr) argument 69 if (vmem_contains(mp, (void *)addr, size)) 70 vmem_free(mp, (void *)addr, size); 71 else if (vmem_add(mp, (voi [all...] |
/illumos-gate/usr/src/uts/common/ipp/dlcosmk/ |
H A D | dlcosmk.c | 57 mblk_t *mp; local 60 mp = *mpp; 66 if (mp->b_datap->db_type != M_DATA) { 67 if ((mp->b_cont == NULL) || 68 (mp->b_cont->b_datap->db_type != M_DATA)) { 115 switch (DB_TYPE(mp)) { 120 dlur = (dl_unitdata_req_t *)mp->b_rptr; 133 mp->b_band = dlcosmk_data->b_band;
|
/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | touch.c | 51 Tv_t* mp; local 64 mp = TV_TOUCH_RETAIN; 66 mp = 0; 71 mp = &mv; 73 return tvtouch(path, ap, mp, NiL, flags & 1);
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | metagetroot.c | 47 struct mnttab mp; local 54 while (getmntent(fp, &mp) == 0) { 55 if (strcmp(mp.mnt_mountp, "/") == 0) 56 return (mp.mnt_special);
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_builtin.c | 59 bltin_init(topo_mod_t *mp, topo_version_t version) argument 64 if (strcmp(mp->tm_name, bp->bltin_name) == 0) 68 mp->tm_data = (void *)bp; 70 if ((*bp->bltin_init)(mp, version) != 0 || mp->tm_info == NULL) { 71 if (mp->tm_errno == 0) 72 (void) topo_mod_seterrno(mp, ETOPO_MOD_INIT); 73 topo_dprintf(mp->tm_hdl, TOPO_DBG_ERR, 75 bp->bltin_name, topo_mod_errmsg(mp)); 83 bltin_fini(topo_mod_t *mp) argument [all...] |
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | winwchnstr.c | 51 char *mp, mbbuf[CSMAX+1]; local 69 for (mp = mbbuf, s = 0; s < scrw; s++, maxcols--, ptr++) { 73 *mp++ = (char) wc; 77 *mp++ = (char) wc; 79 *mp = '\0';
|
/illumos-gate/usr/src/lib/libnsl/common/ |
H A D | common.c | 64 sig_mutex_lock(mutex_t *mp) argument 67 (void) mutex_lock(mp); 71 sig_mutex_unlock(mutex_t *mp) argument 73 (void) mutex_unlock(mp);
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | receipt.c | 53 receipt(struct message *mp) argument 67 if (icsubstr(hfield("default-options", mp, addone), "/receipt") 68 || icsubstr(hfield(">to", mp, addto), "/receipt")) { 69 snprintf(buf, sizeof (buf), "%s %s", mail, skin(nameof(mp))); 77 fp = setinput(mp); 86 if (s = hfield("message-id", mp, addone)) 88 s = hfield("subject", mp, addone);
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/kctl/ |
H A D | kctl_mod.c | 46 struct module *mp = modp->mod_mp; local 49 if ((kmdb_kdi_get_flags() & KMDB_KDI_FL_NOCTF) || mp->ctfdata == NULL) 52 if ((fp = ctf_modopen(mp, &rc)) == NULL)
|