Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 104) sorted by relevance

12345

/xnu-11215/libsyscall/wrappers/
H A Dselect-base.c67 timeout in select()
72 struct timeval tb, *timeout; in select() local
80 timeout = &tb; in select()
82 timeout = intimeout; in select()
92 return __select(nfds, readfds, writefds, exceptfds, timeout); in select()
94 return __select_nocancel(nfds, readfds, writefds, exceptfds, timeout); in select()
150 timeout, in pselect()
157 const struct timespec *timeout; in pselect() local
165 timeout = &tb; in pselect()
167 timeout = intimeout; in pselect()
[all …]
H A Dgethostuuid.c37 gethostuuid(uuid_t uuid, const struct timespec *timeout) in gethostuuid() argument
41 result = __gethostuuid(uuid, timeout); in gethostuuid()
56 _getprivatesystemidentifier(uuid_t uuid, const struct timespec *timeout) in _getprivatesystemidentifier() argument
58 return __gethostuuid(uuid, timeout); in _getprivatesystemidentifier()
/xnu-11215/bsd/kern/
H A Dkern_overrides.c93 static __attribute__((noinline)) int PROCESS_OVERRIDING_SYSTEM_DEFAULTS(uint64_t timeout);
99 uint64_t timeout = uap->timeout; in system_override() local
121 error = PROCESS_OVERRIDING_SYSTEM_DEFAULTS(timeout); in system_override()
287 PROCESS_OVERRIDING_SYSTEM_DEFAULTS(uint64_t timeout) in PROCESS_OVERRIDING_SYSTEM_DEFAULTS() argument
290 ts.tv_sec = timeout / NSEC_PER_SEC; in PROCESS_OVERRIDING_SYSTEM_DEFAULTS()
291 ts.tv_nsec = timeout - ((long)ts.tv_sec * NSEC_PER_SEC); in PROCESS_OVERRIDING_SYSTEM_DEFAULTS()
H A Dsys_ulock.c502 args2.timeout = (uint64_t)(args->timeout) * NSEC_PER_USEC; in sys_ulock_wait()
721 uint64_t timeout = args->timeout; /* nanoseconds */ in sys_ulock_wait2() local
737 if (timeout) { in sys_ulock_wait2()
739 deadline = timeout; in sys_ulock_wait2()
741 nanoseconds_to_deadline(timeout, &deadline); in sys_ulock_wait2()
/xnu-11215/tests/vfs/
H A Dfreeable_vnodes.c178 uint32_t timeout = 10; variable
268 T_LOG("Waiting up to %ds for vnodes to be deallocated", timeout);
269 for (i = 0; i < timeout; i++) {
289 if ((i == (timeout - 1)) &&
296 T_ASSERT_NE(i, timeout, "Deallocateable vnodes should drop in under %ds",
297 timeout);
/xnu-11215/tests/skywalk/
H A Dskt_badring.c57 struct timeval timeout; in skt_badringtx_common() local
82 memset(&timeout, 0, sizeof(timeout)); in skt_badringtx_common()
89 error = select(channelfd + 1, &rfdset, &wfdset, &efdset, &timeout); in skt_badringtx_common()
176 struct timeval timeout; in skt_badringrx_common() local
201 memset(&timeout, 0, sizeof(timeout)); in skt_badringrx_common()
208 error = select(channelfd + 1, &rfdset, &wfdset, &efdset, &timeout); in skt_badringrx_common()
H A Dskt_reass.c89 struct timeval timeout = { variable
643 #define REASS_TEST_GLOBAL(builder, matcher, timeout) \ argument
647 reass_interface_send_rece(builder, matcher, &timeout); \
650 #define REASS_TEST_LINKLOCAL(builder, matcher, timeout) \ argument
654 reass_interface_send_rece(builder, matcher, &timeout); \
657 #define REASS_TEST_ALL(builder, matcher, timeout) \ argument
658 REASS_TEST_GLOBAL(builder, matcher, timeout) \
660 REASS_TEST_LINKLOCAL(builder, matcher, timeout)
690 REASS_TEST_ALL(timeout_build, timeout_match, timeout); in skt_reass_timeout_main()
700 REASS_TEST_ALL(bad_fraglen_build, bad_fraglen_match, timeout); in skt_reass_bad_fraglen_main()
[all …]
/xnu-11215/osfmk/i386/
H A Dmachine_routines.c887 if ((timeout << vti) >> vti != timeout) { in virtual_timeout_inflate64()
891 if ((timeout << vti) > max_timeout) { in virtual_timeout_inflate64()
895 return timeout << vti; in virtual_timeout_inflate64()
905 if ((timeout << vti) >> vti != timeout) { in virtual_timeout_inflate32()
909 return timeout << vti; in virtual_timeout_inflate32()
923 virtual_timeout_inflate_abs(unsigned int vti, uint64_t timeout) in virtual_timeout_inflate_abs() argument
927 return virtual_timeout_inflate64(vti, timeout, max_timeout); in virtual_timeout_inflate_abs()
934 virtual_timeout_inflate_tsc(unsigned int vti, uint64_t timeout) in virtual_timeout_inflate_tsc() argument
937 return virtual_timeout_inflate64(vti, timeout, max_timeout); in virtual_timeout_inflate_tsc()
944 virtual_timeout_inflate_us(unsigned int vti, uint64_t timeout) in virtual_timeout_inflate_us() argument
[all …]
/xnu-11215/osfmk/kern/
H A Dtest_mpsc_queue.c84 uint32_t timeout = 5; in mpsc_test_pingpong() local
114 timeout = 30; in mpsc_test_pingpong()
118 timeout, NSEC_PER_SEC); in mpsc_test_pingpong()
H A Dmachine.c1379 uint64_t timeout = spec->default_value; in machine_timeout_init_with_suffix() local
1391 timeout = *data; in machine_timeout_init_with_suffix()
1401 timeout = *data; in machine_timeout_init_with_suffix()
1409 timeout = boot_arg; in machine_timeout_init_with_suffix()
1484 if (found && timeout > 0) { in machine_timeout_init_with_suffix()
1489 uint64_t nanoseconds = timeout / 1000; in machine_timeout_init_with_suffix()
1492 timeout /= spec->unit_scale; in machine_timeout_init_with_suffix()
1495 if (timeout == 0) { in machine_timeout_init_with_suffix()
1497 timeout = 1; in machine_timeout_init_with_suffix()
1501 if (os_mul_overflow(timeout, scale, &timeout)) { in machine_timeout_init_with_suffix()
[all …]
/xnu-11215/tests/
H A Dtask_vm_info_decompressions.c26 static int timeout = 600; variable
28 static int timeout = 120; variable
63 if (timeout < 0) { in freeze_pid()
68 timeout--; in freeze_pid()
H A Dkqueue_add_and_trigger.c24 const struct timespec timeout = { variable
30 ret = kevent(kq_fd, &kev, 1, &ret_kev, 1, &timeout);
H A Dv4mappedv6_recvpktinfo.c211 struct timespec timeout; in do_kqueue() local
212 timeout.tv_sec = 10; in do_kqueue()
213 timeout.tv_nsec = 0; in do_kqueue()
215 int nev = kevent(kq, NULL, 0, evList, 32, &timeout); in do_kqueue()
H A Depoch_sync_tests.c58 timeout(__unused int ignored) in timeout() function
93 T_ASSERT_NE(signal(SIGALRM, timeout), SIG_ERR, NULL);
H A Dselect_stress.c180 struct timeval timeout; in do_select() local
191 timeout.tv_sec = random() % 1; in do_select()
192 timeout.tv_usec = ((random() % TIMEOUT_POLLCHANCE) * TIMEOUT_SCALE); in do_select()
193 tp = &timeout; in do_select()
H A Dworkqueue_cooperative.c41 uint64_t timeout = duration + current_time; in spin_for_duration() local
45 while (mach_absolute_time() < timeout) { in spin_for_duration()
H A Dkqueue_timer_tests.c45 struct timespec timeout; in do_simple_kevent() local
49 timeout.tv_sec = (expected / USEC_PER_SEC) + 1; in do_simple_kevent()
50 timeout.tv_nsec = (expected % USEC_PER_SEC) * 1000; in do_simple_kevent()
56 ret = kevent64(kq, kev, 1, kev, 1, 0, &timeout); in do_simple_kevent()
H A Dproc_core_name_24152432.c43 static const struct timespec timeout = { variable
118 ret = kevent(kqfd, NULL, 0, kev, 1, &timeout); in look_for_coredump()
/xnu-11215/libsyscall/mach/
H A Dmach_msg.c101 uint64_t timeout) in mach_msg2_internal() argument
113 timeout); in mach_msg2_internal()
129 timeout); in mach_msg2_internal()
142 timeout); in mach_msg2_internal()
166 mach_msg_timeout_t timeout, in mach_msg() argument
170 timeout, notify, NULL, 0); in mach_msg()
196 mach_msg_timeout_t timeout, in mach_msg_overwrite() argument
303 rcv_name, timeout, priority); in mach_msg_overwrite()
306 rcv_limit, rcv_name, timeout, priority); in mach_msg_overwrite()
/xnu-11215/bsd/sys/
H A Dulock.h69 uint32_t timeout);
73 uint64_t timeout, uint64_t value2);
H A Devent.h384 const struct timespec *timeout);
389 const struct timespec *timeout);
/xnu-11215/iokit/DriverKit/
H A DIODispatchQueue.iig188 … * In all cases (signal, timeout or error), the caller resumes running on the queue.
192 * deadline, or zero for no timeout.
193 * @param deadline Clock deadline to timeout the sleep.
202 … * In all cases (signal, timeout or error), the caller resumes running on the queue.
205 * @param timeout Clock delay to timeout the sleep.
209 SleepWithTimeout(void * event, uint64_t timeout) LOCALONLY;
215 Sleep(void * event, uint64_t timeout) LOCALONLY;
H A DIOEventLink.iig140 …* @brief Signal the eventlink and wait with a timeout. If a thread is waiting on the eventli…
144 * @param timeout Timeout
148 … SignalAndWaitUntil(uint64_t clockOptions, uint64_t timeout, uint64_t * signalsConsumed) LOCALONLY;
151 …* @brief Wait with a timeout. If a thread is waiting on the eventlink, this will wake up tha…
155 * @param timeout Timeout
159 WaitUntil(uint64_t clockOptions, uint64_t timeout, uint64_t * signalsConsumed) LOCALONLY;
/xnu-11215/iokit/IOKit/
H A DIOService.h823 IOReturn waitQuietWithOptions(uint64_t timeout = UINT64_MAX, IOOptionBits options = 0);
827 IOReturn waitQuiet(mach_timespec_t * timeout)
836 IOReturn waitQuiet(uint64_t timeout = UINT64_MAX);
946 mach_timespec_t * timeout = NULL);
956 uint64_t timeout = UINT64_MAX);
960 uint64_t timeout, IOUserServerCheckInToken * token );
1790 mach_timespec_t * timeout = NULL );
1792 IOReturn waitForState( UInt32 mask, UInt32 value, uint64_t timeout );
2245 void reset_watchdog_timer(IOService *obj, int timeout);
2246 void reset_watchdog_timer(int timeout = 0);
/xnu-11215/iokit/bsddev/
H A DIOKitBSDInit.h39 IOServiceWaitForMatchingResource( const char * property, uint64_t timeout );

12345