Home
last modified time | relevance | path

Searched refs:sev (Results 1 - 25 of 26) sorted by relevance

12

/third_party/musl/src/aio/
H A Dlio_listio.c9 struct sigevent *sev; member
41 static void notify_signal(struct sigevent *sev) in notify_signal() argument
44 .si_signo = sev->sigev_signo, in notify_signal()
45 .si_value = sev->sigev_value, in notify_signal()
56 struct sigevent *sev = st->sev; in wait_thread() local
59 switch (sev->sigev_notify) { in wait_thread()
61 notify_signal(sev); in wait_thread()
64 sev->sigev_notify_function(sev in wait_thread()
70 lio_listio(int mode, struct aiocb *restrict const *restrict cbs, int cnt, struct sigevent *restrict sev) lio_listio() argument
[all...]
H A Daio.c167 struct sigevent sev = cb->aio_sigevent; in cleanup() local
196 if (sev.sigev_notify == SIGEV_SIGNAL) { in cleanup()
198 .si_signo = sev.sigev_signo, in cleanup()
199 .si_value = sev.sigev_value, in cleanup()
206 if (sev.sigev_notify == SIGEV_THREAD) { in cleanup()
210 sev.sigev_notify_function(sev.sigev_value); in cleanup()
/third_party/musl/porting/liteos_a/user/src/aio/
H A Dlio_listio.c9 struct sigevent *sev; member
41 static void notify_signal(struct sigevent *sev) in notify_signal() argument
44 .si_signo = sev->sigev_signo, in notify_signal()
45 .si_value = sev->sigev_value, in notify_signal()
56 struct sigevent *sev = st->sev; in wait_thread() local
59 switch (sev->sigev_notify) { in wait_thread()
61 notify_signal(sev); in wait_thread()
64 sev->sigev_notify_function(sev in wait_thread()
70 lio_listio(int mode, struct aiocb *restrict const *restrict cbs, int cnt, struct sigevent *restrict sev) lio_listio() argument
[all...]
H A Daio.c160 struct sigevent sev = cb->aio_sigevent; in cleanup() local
189 if (sev.sigev_notify == SIGEV_SIGNAL) { in cleanup()
191 .si_signo = sev.sigev_signo, in cleanup()
192 .si_value = sev.sigev_value, in cleanup()
199 if (sev.sigev_notify == SIGEV_THREAD) { in cleanup()
201 sev.sigev_notify_function(sev.sigev_value); in cleanup()
/third_party/musl/src/mq/
H A Dmq_notify.c19 const struct sigevent *sev; member
28 void (*func)(union sigval) = args->sev->sigev_notify_function; in start()
29 union sigval val = args->sev->sigev_value; in start()
51 int mq_notify(mqd_t mqd, const struct sigevent *sev) in mq_notify() argument
54 if (!sev || sev->sigev_notify != SIGEV_THREAD) { in mq_notify()
55 return syscall(SYS_mq_notify, mqd, sev); in mq_notify()
61 struct args args = { .sev = sev }; in mq_notify()
68 if (!sev || se in mq_notify()
[all...]
/third_party/musl/porting/linux/user/src/mq/
H A Dmq_notify.c13 const struct sigevent *sev; member
22 void (*func)(union sigval) = args->sev->sigev_notify_function; in start()
23 union sigval val = args->sev->sigev_value; in start()
33 int mq_notify(mqd_t mqd, const struct sigevent *sev) in mq_notify() argument
35 struct args args = { .sev = sev }; in mq_notify()
42 if (!sev || sev->sigev_notify != SIGEV_THREAD) in mq_notify()
43 return syscall(SYS_mq_notify, mqd, sev); in mq_notify()
49 if (sev in mq_notify()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/time/
H A Dtimer_settime.c47 struct sigevent sev; in timer_settime_0100() local
50 sev.sigev_notify = SIGEV_SIGNAL; in timer_settime_0100()
51 sev.sigev_signo = SIGNUM; in timer_settime_0100()
52 sev.sigev_value.sival_ptr = &timerid; in timer_settime_0100()
56 int result = timer_create(CLOCK_REALTIME, &sev, &timerid); in timer_settime_0100()
101 struct sigevent sev; in timer_settime64_0100() local
104 sev.sigev_notify = SIGEV_SIGNAL; in timer_settime64_0100()
105 sev.sigev_signo = SIGNUM; in timer_settime64_0100()
106 sev.sigev_value.sival_ptr = &timerid; in timer_settime64_0100()
110 int result = timer_create(CLOCK_REALTIME, &sev, in timer_settime64_0100()
[all...]
H A Dtimer_delete.c42 struct sigevent sev; in timer_delete_0100() local
45 sev.sigev_notify = SIGEV_SIGNAL; in timer_delete_0100()
46 sev.sigev_signo = SIGUSR1; in timer_delete_0100()
47 sev.sigev_value.sival_ptr = &timerid; in timer_delete_0100()
50 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid) == -1) { in timer_delete_0100()
H A Dtimer_create.c39 struct sigevent sev; in timer_create_0100() local
42 sev.sigev_notify = SIGEV_SIGNAL; in timer_create_0100()
43 sev.sigev_signo = SIGNUM; in timer_create_0100()
44 sev.sigev_value.sival_ptr = &timerid; in timer_create_0100()
48 int result = timer_create(CLOCK_REALTIME, &sev, &timerid); in timer_create_0100()
H A Dtimer_getoverrun.c45 struct sigevent sev; in timer_getoverrun_0100() local
47 sev.sigev_notify = SIGEV_SIGNAL; in timer_getoverrun_0100()
48 sev.sigev_signo = SIGNUM; in timer_getoverrun_0100()
49 sev.sigev_value.sival_ptr = &timerid; in timer_getoverrun_0100()
53 int result = timer_create(CLOCK_REALTIME, &sev, &timerid); in timer_getoverrun_0100()
H A Dtimer_gettime.c47 struct sigevent sev; in timer_gettime_0100() local
51 sev.sigev_notify = SIGEV_SIGNAL; in timer_gettime_0100()
52 sev.sigev_signo = SIGUSR1; in timer_gettime_0100()
53 sev.sigev_value.sival_ptr = &timerid; in timer_gettime_0100()
56 if (timer_create(CLOCK_MONOTONIC, &sev, &timerid) == -1) { in timer_gettime_0100()
/third_party/ltp/testcases/kernel/syscalls/mq_notify/
H A Dmq_notify03.c47 struct sigevent sev; in try_null_dereference() local
49 memset(&sev, '\0', sizeof(sev)); in try_null_dereference()
50 sev.sigev_notify = SIGEV_THREAD; in try_null_dereference()
51 sev.sigev_notify_function = try_null_dereference_cb; in try_null_dereference()
57 TST_EXP_PASS(mq_notify(m, &sev)); in try_null_dereference()
64 TST_EXP_PASS(mq_notify(m, &sev)); in try_null_dereference()
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/
H A Dtimer_test.cpp151 struct sigevent sev; in HWTEST_F() local
154 sev.sigev_notify = SIGEV_SIGNAL; in HWTEST_F()
155 sev.sigev_signo = SIGUSR1; in HWTEST_F()
156 sev.sigev_value.sival_ptr = &timerid; in HWTEST_F()
158 int result = timer_create(CLOCK_REALTIME, &sev, &timerid); in HWTEST_F()
176 sigevent sev; in HWTEST_F() local
177 memset(&sev, 0, sizeof(sev)); in HWTEST_F()
178 sev.sigev_notify = SIGEV_THREAD; in HWTEST_F()
179 sev in HWTEST_F()
[all...]
/third_party/musl/porting/liteos_a/user/src/mq/
H A Dmq_notify.c9 int mq_notify(mqd_t mqd, const struct sigevent *sev) in mq_notify() argument
11 if (!sev || sev->sigev_notify != SIGEV_THREAD) in mq_notify()
12 return syscall(SYS_mq_notify, mqd, sev); in mq_notify()
/third_party/ltp/testcases/kernel/syscalls/timer_settime/
H A Dtimer_settime03.c58 struct sigevent sev; in setup() local
60 memset(&sev, 0, sizeof(struct sigevent)); in setup()
61 sev.sigev_notify = SIGEV_SIGNAL; in setup()
62 sev.sigev_signo = SIGUSR1; in setup()
65 SAFE_TIMER_CREATE(CLOCK_REALTIME, &sev, &timer); in setup()
/third_party/rust/crates/nix/test/sys/
H A Dtest_aio.rs62 let sev = aiocb.sigevent().sigevent(); in test_accessors()
63 assert_eq!(Signal::SIGUSR2 as i32, sev.sigev_signo); in test_accessors()
64 assert_eq!(99, sev.sigev_value.sival_ptr as i64); in test_accessors()
130 let sev = aiocb.sigevent().sigevent(); in test_accessors()
131 assert_eq!(Signal::SIGUSR2 as i32, sev.sigev_signo); in test_accessors()
132 assert_eq!(99, sev.sigev_value.sival_ptr as i64); in test_accessors()
257 let sev = aiocb.sigevent().sigevent(); in test_accessors()
258 assert_eq!(Signal::SIGUSR2 as i32, sev.sigev_signo); in test_accessors()
259 assert_eq!(99, sev.sigev_value.sival_ptr as i64); in test_accessors()
317 let sev in test_accessors()
[all...]
/third_party/mesa3d/src/gallium/frontends/clover/api/
H A Devent.cpp42 auto &sev = obj<soft_event>(d_ev); in clSetUserEventStatus() local
47 if (sev.status() <= 0) in clSetUserEventStatus()
51 sev.abort(status); in clSetUserEventStatus()
53 sev.trigger(); in clSetUserEventStatus()
75 auto sev = create<soft_event>(evs.front().context(), evs, true); in clWaitForEvents() local
78 sev().wait(); in clWaitForEvents()
/third_party/rust/crates/nix/src/sys/
H A Daio.rs348 fn set_sigev_notify(&mut self, sev: SigevNotify); in set_sigev_notify()
382 fn set_sigev_notify(&mut self, sev: SigevNotify) { in set_sigev_notify()
383 self.aiocb.set_sigev_notify(sev) in set_sigev_notify()
1166 /// let sev = SigevNotify::SigevSignal { signal: Signal::SIGUSR2, si_value: 0 };
1167 /// lio_listio(LioMode::LIO_NOWAIT, &mut[aiow.as_mut()], sev).unwrap();
1198 let sev = SigevNotify::SigevNone; in casting()
1199 let aiof = AioFsync::new(666, AioFsyncMode::O_SYNC, 0, sev); in casting()
1206 let aior = AioRead::new(666, 0, &mut rbuf, 0, sev); in casting()
1213 let aiow = AioWrite::new(666, 0, &wbuf, 0, sev); in casting()
1223 let sev in casting_vectored()
[all...]
H A Dsignal.rs1060 let mut sev = unsafe { mem::MaybeUninit::<libc::sigevent>::zeroed().assume_init() }; in new() variables
1061 sev.sigev_notify = match sigev_notify { in new()
1075 sev.sigev_signo = match sigev_notify { in new()
1083 sev.sigev_value.sival_ptr = match sigev_notify { in new()
1091 SigEvent::set_tid(&mut sev, &sigev_notify); in new()
1092 SigEvent{sigevent: sev} in new()
1096 fn set_tid(sev: &mut libc::sigevent, sigev_notify: &SigevNotify) { in set_tid()
1097 sev.sigev_notify_thread_id = match *sigev_notify { in set_tid()
/third_party/musl/porting/linux/user/src/time/
H A Dtimer_create.c16 struct sigevent *sev; member
44 void (*notify)(union sigval) = args->sev->sigev_notify_function; in start()
45 union sigval val = args->sev->sigev_value; in start()
103 args.sev = evp; in timer_create()
/third_party/musl/src/time/
H A Dtimer_create.c16 struct sigevent *sev; member
85 void (*notify)(union sigval) = args->sev->sigev_notify_function; in start()
86 union sigval val = args->sev->sigev_value; in start()
152 args.sev = evp; in timer_create()
/third_party/musl/porting/linux/user/src/aio/
H A Daio.c160 struct sigevent sev = cb->aio_sigevent; in cleanup() local
189 if (sev.sigev_notify == SIGEV_SIGNAL) { in cleanup()
191 .si_signo = sev.sigev_signo, in cleanup()
192 .si_value = sev.sigev_value, in cleanup()
199 if (sev.sigev_notify == SIGEV_THREAD) { in cleanup()
203 sev.sigev_notify_function(sev.sigev_value); in cleanup()
/third_party/mesa3d/src/mesa/main/
H A Derrors.h105 #define _mesa_perf_debug(ctx, sev, ...) do { \
111 sev, \
/third_party/nghttp2/src/
H A Dshrpx_connection_handler.cc961 for (auto &sev : q) { in handle_serial_event()
962 switch (sev.type) { in handle_serial_event()
966 mod_config()->conn.downstream = sev.downstreamconf; in handle_serial_event()
969 single_worker_->replace_downstream_config(sev.downstreamconf); in handle_serial_event()
974 worker_replace_downstream(sev.downstreamconf); in handle_serial_event()
/third_party/mesa3d/include/D3D9/
H A Dd3d9types.h42 #define MAKE_HRESULT(sev,fac,code) \
44 ((HRESULT)(sev) << 31) | \

Completed in 18 milliseconds

12