/titanic_50/usr/src/cmd/svc/startd/ |
H A D | contract.c | 49 contract_abandon(ctid_t ctid) in contract_abandon() argument 53 assert(ctid != 0); in contract_abandon() 55 err = contract_abandon_id(ctid); in contract_abandon() 59 "failed to abandon contract %ld: %s\n", ctid, in contract_abandon() 64 contract_kill(ctid_t ctid, int sig, const char *fmri) in contract_kill() argument 66 if (sigsend(P_CTID, ctid, sig) == -1 && errno != ESRCH) { in contract_kill() 80 ctid_t ctid, configd_ctid = -1; in contract_init() local 106 ctid = psi.pr_contract; in contract_init() 110 if ((csfd = contract_open(ctid, "process", "status", O_RDONLY)) < 0) { in contract_init() 211 contract_is_empty(ctid_t ctid) in contract_is_empty() argument [all …]
|
H A D | proc.c | 43 id_t ctid; in proc_get_ctid() local 54 ctid = psinfo.pr_contract; in proc_get_ctid() 56 ctid = -1; in proc_get_ctid() 59 return (ctid); in proc_get_ctid()
|
H A D | fork.c | 244 ctid_t ctid; in fork_sulogin() local 248 MAX_SULOGIN_RETRIES, &ctid, CT_PR_EV_HWERR, 0, in fork_sulogin() 253 contract_abandon(ctid); in fork_sulogin() 319 ctid_t ctid = -1; in fork_configd() local 350 if (ctid != -1) in fork_configd() 351 contract_abandon(ctid); in fork_configd() 352 ctid = -1; in fork_configd() 355 MAX_CONFIGD_RETRIES, &ctid, 0, CT_PR_EV_EXIT, 0, in fork_configd() 535 ctid_t ctid; in fork_configd_thread() local 548 ctid = ct_event_get_ctid(ev); in fork_configd_thread() [all …]
|
H A D | restarter.c | 1263 ctid_t ctid; in unmaintain_instance() local 1311 ctid = rip->ri_i.i_primary_ctid; in unmaintain_instance() 1312 contract_abandon(ctid); in unmaintain_instance() 1335 r = restarter_remove_contract(inst, ctid, RESTARTER_CONTRACT_PRIMARY); in unmaintain_instance() 1363 "Could not remove contract id %lu for %s (%s).\n", ctid, in unmaintain_instance() 2098 contract_to_inst(ctid_t ctid) in contract_to_inst() argument 2103 id = lookup_inst_by_contract(ctid); in contract_to_inst() 2115 if (ctid != inst->ri_i.i_primary_ctid) { in contract_to_inst() 2233 ctid_t ctid; in restarter_contracts_event_thread() local 2245 ctid = ct_event_get_ctid(ev); in restarter_contracts_event_thread() [all …]
|
H A D | startd.c | 495 ctid_t ctid; in read_startd_config() local 584 ctid = proc_get_ctid(); in read_startd_config() 585 if (ctid != -1) { in read_startd_config() 586 uint64 = (uint64_t)ctid; in read_startd_config()
|
H A D | method.c | 674 ctid_t ctid; in method_run() local 907 method_store_contract(inst, type, &ctid); in method_run() 943 timeout_insert(inst, ctid, timeout); in method_run() 969 timeout_remove(inst, ctid); in method_run()
|
/titanic_50/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | contracts.c | 181 adopt_contract(ctid_t ctid, const char *fmri) in adopt_contract() argument 187 if ((fd = open_contract_ctl_file(ctid)) == -1) { in adopt_contract() 195 ctid, fmri); in adopt_contract() 201 "ignored."), ctid, fmri, strerror(errno)); in adopt_contract() 207 "with %s (%s). Events will be ignored."), ctid, fmri, in adopt_contract() 221 abandon_contract(ctid_t ctid) in abandon_contract() argument 226 assert(ctid != -1); in abandon_contract() 228 if ((fd = open_contract_ctl_file(ctid)) == -1) { in abandon_contract() 229 error_msg(gettext("Failed to abandon contract %d: %s"), ctid, in abandon_contract() 236 error_msg(gettext("Failed to abandon contract %d: %s"), ctid, in abandon_contract()
|
H A D | repval.c | 640 add_remove_contract(instance_t *inst, boolean_t add, ctid_t ctid) in add_remove_contract() argument 673 if (fprintf(tfp, "%llu\n", (uint64_t)ctid) <= 0) { in add_remove_contract() 684 if (add_rep_val(inst->start_ctids, ctid) != 0) { in add_remove_contract() 689 remove_rep_val(inst->start_ctids, ctid); in add_remove_contract()
|
/titanic_50/usr/src/uts/common/sys/ |
H A D | ctfs_impl.h | 64 #define CTFS_INO_CT(ctid, file) \ argument 67 (ctid)) 68 #define CTFS_INO_CT_DIR(ctid) CTFS_INO_CT((ctid), 0) argument 69 #define CTFS_INO_CT_LINK(ctid) CTFS_INO_CT((ctid), 1) argument 70 #define CTFS_INO_CT_FILE(ctid, file) CTFS_INO_CT((ctid), (file) + 2) argument
|
/titanic_50/usr/src/cmd/ptools/ptree/ |
H A D | ptree.c | 63 ctid_t ctid; member 237 p->ctid = info.pr_contract; in main() 372 indent, indent, " ", (int)p->ctid); in printone() 402 ctsort(ctid_t ctid, ps_t *p) in ctsort() argument 410 if (ctps[n]->ctid == ctid) { in ctsort() 415 if ((fd = contract_open(ctid, "process", "status", O_RDONLY)) == -1) in ctsort() 439 pp->ctid = ctid; in ctsort() 486 p->ctid != -1 && p->ctid != pp->ctid) { in prsort() 487 ctsort(p->ctid, p); in prsort() 498 ctsort(p->ctid, p); in prsort()
|
/titanic_50/usr/src/cmd/ctrun/ |
H A D | ctrun.c | 240 get_event(int fd, int ctfd, ctid_t ctid) in get_event() argument 276 if (ct_event_get_ctid(ev) == ctid) in get_event() 379 ctid_t ctid = 0; in main() local 580 ctid = opt_adopt; in main() 582 v_printf(gettext("adopted contract id %ld\n"), ctid); in main() 639 if (errno = contract_latest(&ctid)) in main() 641 if ((ctfd = contract_open(ctid, "process", "ctl", in main() 654 v_printf(gettext("created contract id %ld\n"), ctid); in main() 666 event = get_event(efd, ctfd, ctid); in main() 672 bit2str(option_events, event), ctid); in main() [all …]
|
/titanic_50/usr/src/lib/libcontract/common/ |
H A D | libcontract_priv.c | 84 contract_open(ctid_t ctid, const char *type, const char *file, int oflag) in contract_open() argument 94 n = snprintf(path, PATH_MAX, CTFS_ROOT "/%s/%ld/%s", type, ctid, file); in contract_open() 113 contract_abandon_id(ctid_t ctid) in contract_abandon_id() argument 117 fd = contract_open(ctid, "all", "ctl", O_WRONLY); in contract_abandon_id()
|
H A D | device_dump.c | 53 ctid_t ctid; in event_device() local 58 ctid = ct_event_get_ctid(ev); in event_device() 60 statfd = contract_open(ctid, "device", "status", O_RDONLY); in event_device()
|
H A D | process.c | 42 ct_pr_tmpl_set_transfer(int fd, ctid_t ctid) in ct_pr_tmpl_set_transfer() argument 44 return (ct_tmpl_set_internal(fd, CTPP_SUBSUME, ctid)); in ct_pr_tmpl_set_transfer() 72 ct_pr_tmpl_get_transfer(int fd, ctid_t *ctid) in ct_pr_tmpl_get_transfer() argument 74 return (ct_tmpl_get_internal(fd, CTPP_SUBSUME, (uint_t *)ctid)); in ct_pr_tmpl_get_transfer() 297 ct_pr_status_get_svc_ctid(ct_stathdl_t stathdl, ctid_t *ctid) in ct_pr_status_get_svc_ctid() argument 305 (int32_t *)ctid)); in ct_pr_status_get_svc_ctid()
|
H A D | process_dump.c | 94 ctid_t ctid; in event_process() local 151 if (ct_pr_event_get_senderct(ev, &ctid) == 0) in event_process() 153 "\tsender ctid: %d\n"), ctid); in event_process()
|
H A D | libcontract.c | 59 ctid_t ctid = ioctl(fd, CT_TCREATE); in ct_tmpl_create() local 60 if (ctid == -1) in ct_tmpl_create() 62 *ctidp = ctid; in ct_tmpl_create()
|
/titanic_50/usr/src/uts/common/contract/ |
H A D | device.c | 1020 ctid_t ctid; in contract_device_ack_nack() local 1023 ctid = ct->ct_id; in contract_device_ack_nack() 1025 CT_DEBUG((CE_NOTE, "ack_nack: entered: ctid %d", ctid)); in contract_device_ack_nack() 1028 CT_DEBUG((CE_NOTE, "ack_nack: contract lock acquired: %d", ctid)); in contract_device_ack_nack() 1059 CT_DEBUG((CE_NOTE, "ack_nack: dv_clean: %d", ctid)); in contract_device_ack_nack() 1063 ctid)); in contract_device_ack_nack() 1080 ctid)); in contract_device_ack_nack() 1084 "ctid: %d", ctid)); in contract_device_ack_nack() 1113 cmd == CT_NACK ? ETIMEDOUT : 0, ctid)); in contract_device_ack_nack() 1121 cmd == CT_NACK ? "N" : "", ctid)); in contract_device_ack_nack() [all …]
|
H A D | process.c | 1159 ctid_t ctid, zoneid_t zoneid) in contract_process_sig() argument 1181 if (ctid != 0) in contract_process_sig() 1182 VERIFY(nvlist_add_uint32(dest, CTPE_SENDCT, ctid) == 0); in contract_process_sig()
|
/titanic_50/usr/src/uts/common/fs/ctfs/ |
H A D | ctfs_tmpl.c | 128 ctid_t ctid; in ctfs_tmpl_ioctl() local 142 error = ctmpl_create(tmplnode->ctfs_tmn_tmpl, &ctid); in ctfs_tmpl_ioctl() 145 *rvalp = ctid; in ctfs_tmpl_ioctl()
|
/titanic_50/usr/src/cmd/ipf/svc/ |
H A D | ipfilter | 211 ctid=`svcprop -p restarter/contract $SMF_FMRI` 212 if [ -n "$ctid" ]; then 213 smf_kill_contract $ctid TERM 1
|
/titanic_50/usr/src/cmd/halt/ |
H A D | halt.c | 114 ctid_t ctid; member 246 save_ctid(ctid_t ctid) in save_ctid() argument 251 if (next->ctid == ctid) in save_ctid() 258 next->ctid = ctid; in save_ctid() 267 ctid_t ctid; in stop_delegates() local 356 ctid = (ctid_t)uint64; in stop_delegates() 357 if (save_ctid(ctid) == 0) { in stop_delegates() 358 (void) sigsend(P_CTID, ctid, SIGSTOP); in stop_delegates() 382 (void) sigsend(P_CTID, next->ctid, SIGCONT); in continue_delegates()
|
/titanic_50/usr/src/cmd/cron/ |
H A D | cron.c | 215 int ctid; /* for el_remove-ing crontab events */ member 635 (next_event->u)->ctid)) { in main() 843 u->ctid = ecid++; in create_ulist() 846 u->ctid = 0; in create_ulist() 870 el_remove(u->ctid, 0); in init_cronevent() 968 if (u->ctid == 0) { in mod_ctab() 974 u->ctid = ecid++; in mod_ctab() 983 el_remove(u->ctid, 0); in mod_ctab() 1266 switch (el_add(e, e->time, u->ctid)) { in readcron() 2117 el_remove(u->ctid, 0); in del_ctab() [all …]
|
/titanic_50/usr/src/cmd/svc/lsvcrun/ |
H A D | lsvcrun.c | 710 ctid_t ctid; in set_legacy_service() local 723 if (errno = contract_latest(&ctid)) { in set_legacy_service() 766 (void *)ctid) != 0) in set_legacy_service()
|
/titanic_50/usr/src/cmd/init/ |
H A D | init.c | 4279 ctid_t ctid; in contract_event() local 4296 ctid = ct_event_get_ctid(e); in contract_event() 4303 ret = contract_cookie(ctid, &cookie); in contract_event() 4328 ctid); in contract_event() 4334 if (abandon && (err = contract_abandon_id(ctid))) { in contract_event() 4336 ctid, strerror(err)); in contract_event() 4346 "contract %ld.\n", ct_event_get_type(e), ctid); in contract_event()
|
/titanic_50/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 471 ctid_t ctid; in ses_contract_thread() local 508 ctid = ct_event_get_ctid(ev); in ses_contract_thread() 510 "got contract event ctid=%d", ctid); in ses_contract_thread() 525 ctid); in ses_contract_thread() 539 CTFS_ROOT "/device/%ld/ctl", ctid); in ses_contract_thread() 554 ctid); in ses_contract_thread()
|