Home
last modified time | relevance | path

Searched refs:ev (Results 1 – 25 of 178) sorted by relevance

12345678

/illumos-gate/usr/src/boot/libsa/
H A Denvironment.c49 for (ev = environ; ev != NULL; ev = ev->ev_next) in env_getenv()
52 return (ev); in env_getenv()
75 return (ev->ev_sethook(ev, flags, value)); in env_setenv()
78 if (ev->ev_value != NULL && (ev->ev_flags & EV_DYNAMIC) != 0) in env_setenv()
116 environ = ev; in env_setenv()
184 err = ev->ev_unsethook(ev); in unsetenv()
195 if (ev->ev_prev) in env_discard()
196 ev->ev_prev->ev_next = ev->ev_next; in env_discard()
198 ev->ev_next->ev_prev = ev->ev_prev; in env_discard()
202 if (ev->ev_value != NULL && (ev->ev_flags & EV_DYNAMIC) != 0) in env_discard()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Desi.c177 ev_t *ev; in ev_new() local
183 free(ev); in ev_new()
193 return (ev); in ev_new()
380 ev_t *ev, in ev_add() argument
497 ev_t *ev; in verify_esi_portal() local
816 free(ev); in ev_free()
970 ev_t *ev; in evl_append() local
1002 ev = *evp; in evl_strip()
1040 ev = ev->next; in evl_remove()
1128 ev_t *ev in ev_ex() argument
[all …]
H A Dsched.c295 void *ev, in el_add() argument
318 if (evf_rem(ev) == 0 && in el_add()
322 *evp = ev; in el_add()
325 evl_strip(ev); in el_add()
328 ev_free(ev); in el_add()
335 t = ev_intval(ev); in el_add()
337 if (evf_init(ev) || evf_again(ev)) { in el_add()
400 x->event = ev; in el_add()
423 evf_zero(ev); in el_add()
427 ((ev_t *)ev)->uid, in el_add()
[all …]
/illumos-gate/usr/src/lib/libsysevent/
H A Dlibsysevent.h60 sysevent_t *sysevent_dup(sysevent_t *ev);
61 void sysevent_free(sysevent_t *ev);
68 int sysevent_get_class(sysevent_t *ev);
69 char *sysevent_get_class_name(sysevent_t *ev);
70 int sysevent_get_subclass(sysevent_t *ev);
72 char *sysevent_get_pub(sysevent_t *ev);
73 char *sysevent_get_vendor_name(sysevent_t *ev);
74 char *sysevent_get_pub_name(sysevent_t *ev);
76 uint64_t sysevent_get_seq(sysevent_t *ev);
78 size_t sysevent_get_size(sysevent_t *ev);
[all …]
H A Dlibsysevent.c84 sysevent_t *ev; in sysevent_alloc() local
112 if (ev == NULL) { in sysevent_alloc()
124 SE_PUB_OFF(ev) = SE_SUBCLASS_OFF(ev) + aligned_subclass_sz; in sysevent_alloc()
132 return (ev); in sysevent_alloc()
141 free(ev); in sysevent_alloc()
145 return (ev); in sysevent_alloc()
156 sysevent_t *ev; in sysevent_post_event() local
164 (uintptr_t)ev, (uintptr_t)SE_SIZE(ev), (uintptr_t)eid, 0); in sysevent_post_event()
222 free(ev); in sysevent_free()
591 sysevent_t *ev; in sysevent_alloc_event() local
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dclock.c157 ev->ev_time = nowi;
159 ev->ev_arg = arg;
163 *evp = ev;
182 return ev;
198 sm_clrevent(ev) in sm_clrevent() argument
207 if (ev == NULL)
216 if (*evp == ev)
285 for (ev = SmEventQueue; ev->ev_link != NULL; ev = ev->ev_link) in sm_clear_events()
408 f = ev->ev_func;
525 SM_EVENT *ev;
[all …]
H A Dt-event.c56 SM_EVENT *ev; local
64 ev = sm_seteventm(1000, ev1, 1);
70 ev = sm_seteventm(9000, ev1, 2);
74 sm_clrevent(ev);
80 ev = sm_seteventm(1000, evcheck, 3);
84 sm_clrevent(ev);
/illumos-gate/usr/src/lib/fm/libfmevent/common/
H A Dfmev_evaccess.c51 #define FMEV2IMPL(ev) ((fmev_impl_t *)(ev)) argument
132 fmev_hold(fmev_t ev) in fmev_hold() argument
144 fmev_rele(fmev_t ev) in fmev_rele() argument
157 fmev_dup(fmev_t ev) in fmev_dup() argument
167 if (ev == NULL) { in fmev_dup()
190 fmev_attr_list(fmev_t ev) in fmev_attr_list() argument
199 if (ev == NULL) { in fmev_attr_list()
211 fmev_class(fmev_t ev) in fmev_class() argument
221 if (ev == NULL) { in fmev_class()
261 fmev_time_sec(fmev_t ev) in fmev_time_sec() argument
[all …]
/illumos-gate/usr/src/uts/common/sys/
H A Dsysevent_impl.h123 #define SE_VERSION(ev) (SYSEVENT_IMPL(ev)->seh_version) argument
124 #define SE_CLASS(ev) (SYSEVENT_IMPL(ev)->seh_class) argument
125 #define SE_SUBCLASS(ev) (SYSEVENT_IMPL(ev)->seh_subclass) argument
126 #define SE_SEQ(ev) (SYSEVENT_IMPL(ev)->seh_seq) argument
127 #define SE_TIME(ev) (SYSEVENT_IMPL(ev)->seh_time) argument
129 #define SE_PUB_OFF(ev) (SYSEVENT_IMPL(ev)->seh_pub_off) argument
131 #define SE_FLAG(ev) (SYSEVENT_IMPL(ev)->seh_flag) argument
134 #define SE_SUBCLASS_NAME(ev) ((char *)((caddr_t)(ev) + SE_SUBCLASS_OFF(ev))) argument
135 #define SE_PUB_NAME(ev) ((char *)((caddr_t)(ev) + SE_PUB_OFF(ev))) argument
148 #define SE_ATTR_PTR(ev) (SYSEVENT_IMPL(ev)->seh_attr_off) argument
[all …]
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_cmds.c59 inj_rand_create(inj_defn_t *ev, uint_t prob) in inj_rand_create() argument
63 re->re_event = ev; in inj_rand_create()
125 inj_cmd_send(inj_defn_t *ev) in inj_cmd_send() argument
130 cmd->cmd_event = ev; in inj_cmd_send()
153 ev->defn_name = class; in inj_cmd_addhrt()
154 ev->defn_lineno = yylineno; in inj_cmd_addhrt()
165 cmd->cmd_event = ev; in inj_cmd_addhrt()
195 if (ev->defn_decl && (ev->defn_decl->decl_flags & DECL_F_AUTOENA) && in cmd_run_send()
197 warn("failed to add ena to %s", ev->defn_name); in cmd_run_send()
200 nvlist_print(stdout, ev->defn_nvl); in cmd_run_send()
[all …]
/illumos-gate/usr/src/lib/libcontract/common/
H A Dprocess_dump.c47 event_process(FILE *file, ct_evthdl_t ev, int verbose) in event_process() argument
53 type = ct_event_get_type(ev); in event_process()
54 if (ct_pr_event_get_pid(ev, &pid) != 0) { in event_process()
96 if (ct_pr_event_get_ppid(ev, &pid) == 0) in event_process()
101 if (ct_pr_event_get_exitstatus(ev, &i) != 0) in event_process()
129 if (ct_pr_event_get_pcorefile(ev, &c) == 0) in event_process()
132 if (ct_pr_event_get_gcorefile(ev, &c) == 0) in event_process()
135 if (ct_pr_event_get_zcorefile(ev, &c) == 0) in event_process()
140 if (ct_pr_event_get_signal(ev, &i) == 0) { in event_process()
148 if (ct_pr_event_get_sender(ev, &pid) == 0) in event_process()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dlog_sysevent.c199 sysevent_t *ev; in log_event_upcall() local
496 sysevent_t *ev; in sysevent_alloc() local
541 SE_PUB_OFF(ev) = SE_SUBCLASS_OFF(ev) + aligned_subclass_sz; in sysevent_alloc()
547 return (ev); in sysevent_alloc()
559 ASSERT(ev != NULL); in sysevent_free()
580 ASSERT(ev != NULL); in free_packed_event()
698 SE_FLAG(ev) = 0; in sysevent_attach_attributes()
1463 sysevent_t *ev; in log_sysevent_copyout_data() local
1493 if (copyout(ev, ubuf, SE_SIZE(ev)) != 0) { in log_sysevent_copyout_data()
1518 sysevent_t *ev; in log_sysevent_free_data() local
[all …]
H A Devchannels.c68 #define GEVENT(ev) ((evch_gevent_t *)((char *)ev - \ argument
767 if (ev == NULL) { in evch_evq_evnext()
1632 void *ev; in evch_chrdevent_init() local
1676 ev = NULL; in evch_chrdevent_init()
1677 while ((ev = evch_evq_evnext(sdp->sd_queue, ev)) != NULL) { in evch_chrdevent_init()
1681 ev = NULL; in evch_chrdevent_init()
1682 while ((ev = evch_evq_evnext(chp->ch_queue, ev)) != NULL) { in evch_chrdevent_init()
1798 sysevent_impl_t *ev; in sysevent_evc_alloc() local
1841 SE_PUB_OFF(ev) = SE_SUBCLASS_OFF(ev) + aligned_subclass_sz; in sysevent_evc_alloc()
1847 return (ev); in sysevent_evc_alloc()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/sfio/
H A Dsfexcept.c38 reg int ev, local, lock; local
58 ev = (*(disc->exceptf))(f,type,&io,disc);
65 SFMTXRETURN(f, ev);
66 if(ev < 0)
68 if(ev > 0)
122 if((ev = sfclose(pf)) < 0) /* can't close, restack */
128 ev = ev < 0 ? SF_EDONE : SF_ESTACK;
130 else ev = SF_EDONE;
132 SFMTXRETURN(f, ev);
/illumos-gate/usr/src/cmd/syseventd/modules/datalink_mod/
H A Ddatalink_mod.c46 nvlist_t *ev; member
92 0, tmp_events->ev, NULL) != RCM_SUCCESS) in datalink_notify_thread()
99 nvlist_free(ep->ev); in datalink_notify_thread()
113 datalink_deliver_event(sysevent_t *ev, int unused) in datalink_deliver_event() argument
115 const char *class = sysevent_get_class_name(ev); in datalink_deliver_event()
116 const char *subclass = sysevent_get_subclass_name(ev); in datalink_deliver_event()
125 if (sysevent_get_attr_list(ev, &nvl) != 0) in datalink_deliver_event()
135 newp->ev = nvl; in datalink_deliver_event()
/illumos-gate/usr/src/cmd/picl/plugins/common/piclevent/
H A Dpicl_slm.c48 static int piclslm_deliver_event(sysevent_t *ev, int flag);
196 piclslm_add_ec_devfs_args(nvlist_t *nvl, sysevent_t *ev) in piclslm_add_ec_devfs_args() argument
216 piclslm_add_ec_dr_args(nvlist_t *nvl, sysevent_t *ev) in piclslm_add_ec_dr_args() argument
228 if (sysevent_lookup_attr(ev, DR_HINT, SE_DATA_TYPE_STRING, in piclslm_add_ec_dr_args()
245 piclslm_add_ec_dr_req_args(nvlist_t *nvl, sysevent_t *ev) in piclslm_add_ec_dr_req_args() argument
251 if (sysevent_get_attr_list(ev, &nvlist)) { in piclslm_add_ec_dr_req_args()
291 piclslm_deliver_event(sysevent_t *ev, int flag) in piclslm_deliver_event() argument
306 ec = sysevent_get_class_name(ev); in piclslm_deliver_event()
307 esc = sysevent_get_subclass_name(ev); in piclslm_deliver_event()
311 ev, (ec) ? ec : "NULL", (esc) ? esc : "NULL"); in piclslm_deliver_event()
[all …]
/illumos-gate/usr/src/lib/libc/port/sys/
H A Depoll.c133 uint32_t events, ev = 0; in epoll_ctl() local
140 ev = POLLREMOVE; in epoll_ctl()
164 ev = events & ~(EPOLLIGNORED | EPOLLSWIZZLED); in epoll_ctl()
167 ev |= POLLRDHUP; in epoll_ctl()
170 ev |= POLLET; in epoll_ctl()
173 ev |= POLLONESHOT; in epoll_ctl()
176 ev |= POLLWRNORM; in epoll_ctl()
179 ev |= POLLWRBAND; in epoll_ctl()
189 epoll[i].dpep_pollfd.events = ev; in epoll_ctl()
/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/
H A Ddtclose.c35 int ev, type; local
43 ev = (*disc->eventf)(dt, DT_CLOSE, (Void_t*)1, disc);
44 else ev = 0;
45 if(ev < 0) /* cannot close */
54 if(ev == 0 ) /* release all allocated data */
/illumos-gate/usr/src/lib/libslp/javalib/com/sun/slp/
H A DParser.java129 Parser.QueryEvaluator ev, in parseAndEvaluateQuery() argument
283 Parser.QueryEvaluator ev, in parseFilter() argument
313 ret = parseFilter(tk, ev, locale, !invert, eval); in parseFilter()
317 ret = parseItem(tk, ev, locale, invert, eval); in parseFilter()
326 ret = parseItem(tk, ev, locale, invert, eval); in parseFilter()
350 Parser.QueryEvaluator ev, in parseFilterlist() argument
367 prex = parseFilter(tk, ev, locale, invert, eval); in parseFilterlist()
371 prex = parseFilter(tk, ev, locale, invert, eval); in parseFilterlist()
407 Parser.QueryEvaluator ev, in parseItem() argument
496 if (!ev.evaluate(attr, op, value, invert, prex) && in parseItem()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dsysevent.c33 sysevent_impl_t *ev; in sysevent_buf() local
54 ev = mdb_alloc(size, UM_SLEEP | UM_GC); in sysevent_buf()
56 if (mdb_vread(ev, size, addr) == -1) { in sysevent_buf()
66 SE_CLASS_NAME(ev)) >= CLASS_FIELD_MAX - 1) in sysevent_buf()
70 SE_SUBCLASS_NAME(ev)) >= SUBCLASS_FIELD_MAX - 1) in sysevent_buf()
75 addr, SE_SEQ(ev), ev_class, ev_subclass, in sysevent_buf()
76 addr + SE_ATTR_OFF(ev)); in sysevent_buf()
79 mdb_printf("%16s : %s\n", "publisher", SE_PUB_NAME(ev)); in sysevent_buf()
81 mdb_printf("%16s : %s\n", "class", SE_CLASS_NAME(ev)); in sysevent_buf()
83 mdb_printf("%16s : %llu\n", "time stamp", SE_TIME(ev)); in sysevent_buf()
[all …]
/illumos-gate/usr/src/cmd/tail/
H A Dforward.c265 associate(file_info_t *file, boolean_t assoc, port_event_t *ev) in associate() argument
343 if (ev == NULL || (ev->portev_events & FILE_TRUNC) || in associate()
344 !(ev->portev_events & (FILE_MODIFIED | FILE_TRUNC))) { in associate()
349 ev = NULL; in associate()
352 if (ev == NULL || (ev->portev_events & FILE_MODIFIED) || in associate()
353 !(ev->portev_events & (FILE_MODIFIED | FILE_TRUNC))) { in associate()
392 port_event_t ev; in follow() local
485 n = port_get(port, &ev, Fflag ? &ts : NULL); in follow()
488 file = (file_info_t *)ev.portev_user; in follow()
489 associate(file, B_TRUE, &ev); in follow()
[all …]
/illumos-gate/usr/src/uts/i86pc/i86hvm/io/xpv/
H A Devtchn.c139 hypervisor_unmask_event(unsigned int ev) in hypervisor_unmask_event() argument
141 int index = ev >> EVTCHN_SHIFT; in hypervisor_unmask_event()
142 ulong_t bit = 1UL << (ev & ((1UL << EVTCHN_SHIFT) - 1)); in hypervisor_unmask_event()
154 unmask.port = ev; in hypervisor_unmask_event()
161 hypervisor_mask_event(uint_t ev) in hypervisor_mask_event() argument
163 int index = ev >> EVTCHN_SHIFT; in hypervisor_mask_event()
164 ulong_t bit = 1UL << (ev & ((1UL << EVTCHN_SHIFT) - 1)); in hypervisor_mask_event()
172 hypervisor_clear_event(uint_t ev) in hypervisor_clear_event() argument
174 int index = ev >> EVTCHN_SHIFT; in hypervisor_clear_event()
175 ulong_t bit = 1UL << (ev & ((1UL << EVTCHN_SHIFT) - 1)); in hypervisor_clear_event()
/illumos-gate/usr/src/uts/intel/pcbe/
H A Dp4_pcbe.c443 p4_event_t *ev; in p4_pcbe_init() local
462 for (ev = p4_events; ev->pe_name != NULL; ev++) { in p4_pcbe_init()
463 if (ev->pe_ctr_mask & C(i)) in p4_pcbe_init()
479 for (ev = p4_events; ev->pe_name != NULL; ev++) { in p4_pcbe_init()
480 if (ev->pe_ctr_mask & C(i)) { in p4_pcbe_init()
579 p4_event_t *ev; in p4_pcbe_event_coverage() local
589 return (ev->pe_ctr_mask); in p4_pcbe_event_coverage()
672 p4_event_t *ev; in p4_pcbe_configure() local
703 ev = find_event(gevp->event); in p4_pcbe_configure()
704 ASSERT(ev != NULL); in p4_pcbe_configure()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dctl_clnt.c79 evContext ev; member
159 ctx->ev = lev; in ctl_client()
172 if (ctx->sock > evHighestFD(ctx->ev)) { in ctl_client()
349 (void)evCancelConn(ctx->ev, ctx->coID); in destroy()
356 (void)evCancelRW(ctx->ev, ctx->wrID); in destroy()
398 conn_done(evContext ev, void *uap, int fd, in conn_done() argument
406 UNUSED(ev); in conn_done()
475 (void)evDeselectFD(ctx->ev, ctx->rdID); in stop_read()
487 UNUSED(ev); in readable()
596 evTouchIdleTimer(ctx->ev, ctx->tiID); in touch_timer()
[all …]
/illumos-gate/usr/src/cmd/ctrun/
H A Dctrun.c242 ct_evthdl_t ev; in get_event() local
254 errno = opt_verbose ? ct_event_read(fd, &ev) : in get_event()
255 ct_event_read_critical(fd, &ev); in get_event()
264 ct_event_get_ctid(ev)); in get_event()
265 contract_event_dump(stdout, ev, opt_Verbose); in get_event()
267 ct_event_free(ev); in get_event()
275 evid = ct_event_get_evid(ev); in get_event()
276 if (ct_event_get_ctid(ev) == ctid) in get_event()
289 ct_event_free(ev); in get_event()
303 result = ct_event_get_type(ev); in get_event()
[all …]

12345678