Searched defs:sleep (Results 1 - 25 of 55) sorted by relevance

123

/illumos-gate/usr/src/cmd/initpkg/
H A Dumountall.sh65 # /usr/bin/sleep -k, to sleep after an fuser -c -k on the mountpoint
137 sleep () { function
138 : # No need to show where we'd sleep
207 sleep () { function
211 if [ ! -x /usr/bin/sleep ]; then
212 sleep () { function
213 echo "umountall: sleep after fuser -k skipped (no /usr)" 1>&2
353 sleep 2
/illumos-gate/usr/src/stand/lib/sa/
H A Dunistd.c72 sleep(unsigned int secs) function
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_gcmd.c66 int sleep)
74 gwp = kmem_zalloc(gwrap_len, (sleep ? KM_SLEEP : KM_NOSLEEP));
76 ASSERT(sleep == FALSE);
64 ghd_gcmd_alloc(gtgt_t *gtgtp, int ccblen, int sleep) argument
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dclock.c484 ** SLEEP -- a version of sleep that works with this stuff
486 ** Because Unix sleep uses the alarm facility, I must reimplement
490 ** intvl -- time to sleep.
511 sleep(intvl) function
546 syslog(LOG_ERR, "sleep: interval=%u exceeds max value %d",
572 syslog(LOG_ERR, "sleep: sm_setevent(%u) failed", intvl);
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_pkt.c149 uint32_t datalen, int32_t sleep)
172 if (!(pkt = (fc_packet_t *)kmem_alloc(pkt_size, sleep))) {
178 cb = (sleep == KM_SLEEP) ? DDI_DMA_SLEEP : DDI_DMA_DONTWAIT;
148 emlxs_pkt_alloc(emlxs_port_t *port, uint32_t cmdlen, uint32_t rsplen, uint32_t datalen, int32_t sleep) argument
H A Demlxs_event.c964 uint32_t sleep)
1000 if (!sleep) {
1389 uint32_t sleep)
1425 if (!sleep) {
963 emlxs_get_dfc_event(emlxs_port_t *port, emlxs_dfc_event_t *dfc_event, uint32_t sleep) argument
1388 emlxs_get_sd_event(emlxs_port_t *port, emlxs_dfc_event_t *dfc_event, uint32_t sleep) argument
/illumos-gate/usr/src/lib/libshell/common/bltins/
H A Dsleep.c22 * sleep delay
29 #define sleep ______sleep macro
31 #undef sleep macro
39 # define sleep _ast_sleep macro
126 unsigned int sleep(unsigned int sec) function
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Dmisc.c57 void sleep(int secs) function
71 printf("<sleep>\n");
72 return sleep(secs);
/illumos-gate/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_fcoib.c234 uint8_t port, uint32_t qp_indx, uint_t sleep)
254 nummtt, mtt_addr, sleep);
264 uint32_t qpnum, uint_t sleep)
283 status = hermon_mr_fexch_mpt_fini(state, pd, mpt_indx, sleep);
233 hermon_fcoib_fexch_mkey_init(hermon_state_t *state, hermon_pdhdl_t pd, uint8_t port, uint32_t qp_indx, uint_t sleep) argument
263 hermon_fcoib_fexch_mkey_fini(hermon_state_t *state, hermon_pdhdl_t pd, uint32_t qpnum, uint_t sleep) argument
H A Dhermon_misc.c2557 int sleep; local
2560 sleep = (fmr_attr->fmr_flags & IBT_MR_SLEEP) ? HERMON_SLEEP :
2562 if ((sleep == HERMON_SLEEP) &&
2563 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
2567 fmrpool = (hermon_fmrhdl_t)kmem_zalloc(sizeof (*fmrpool), sleep);
2611 sizeof (hermon_fmr_list_t), sleep);
H A Dhermon_mr.c70 uint_t sleep, uint_t *dereg_level);
74 ddi_dma_handle_t dmahdl, uint_t sleep, uint_t is_buffer);
185 uint_t sleep, mr_is_umem; local
189 * Check the sleep flag. Ensure that it is consistent with the
191 * context, then we shouldn't be attempting to sleep).
193 sleep = (mr_attr->mr_flags & IBT_MR_NOSLEEP) ? HERMON_NOSLEEP :
195 if ((sleep == HERMON_SLEEP) &&
196 (sleep != HERMON_SLEEPFLAG_FOR_CONTEXT())) {
212 status = hermon_rsrc_alloc(state, HERMON_DMPT, 1, sleep, &mpt);
224 status = hermon_rsrc_alloc(state, HERMON_MRHDL, 1, sleep,
452 uint_t sleep, mtt_pgsize_bits; local
745 hermon_mr_deregister(hermon_state_t *state, hermon_mrhdl_t *mrhdl, uint_t level, uint_t sleep) argument
1230 uint_t sleep; local
1350 hermon_mw_free(hermon_state_t *state, hermon_mwhdl_t *mwhdl, uint_t sleep) argument
1484 uint_t sleep, mtt_pgsize_bits, bind_type, mr_is_umem; local
1837 uint_t sleep; local
2027 uint_t sleep; local
2175 hermon_mr_fexch_mpt_init(hermon_state_t *state, hermon_pdhdl_t pd, uint32_t mpt_indx, uint_t nummtt, uint64_t mtt_addr, uint_t sleep) argument
2238 hermon_mr_fexch_mpt_fini(hermon_state_t *state, hermon_pdhdl_t pd, uint32_t mpt_indx, uint_t sleep) argument
2271 uint_t sleep; local
2388 uint_t sleep, dereg_level; local
2696 hermon_mr_rereg_xlat_helper(hermon_state_t *state, hermon_mrhdl_t mr, hermon_bind_info_t *bind, hermon_mr_options_t *op, uint64_t *mtt_addr, uint_t sleep, uint_t *dereg_level) argument
3096 hermon_mr_mem_bind(hermon_state_t *state, hermon_bind_info_t *bind, ddi_dma_handle_t dmahdl, uint_t sleep, uint_t is_buffer) argument
[all...]
/illumos-gate/usr/src/uts/sun4u/io/i2c/misc/
H A Di2c_svc.c187 int sleep; local
197 sleep = KM_SLEEP;
199 sleep = KM_NOSLEEP;
201 sleep = KM_NOSLEEP;
206 if ((i2cw = kmem_zalloc(size, sleep)) == NULL) {
/illumos-gate/usr/src/lib/libldap5/include/ldap/
H A Dportable.h404 #define sleep(a) Sleep( a*1000 ) macro
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_timer.c157 sctp_timer_alloc(sctp_t *sctp, pfv_t func, int sleep) argument
164 if (sleep == KM_SLEEP) {
H A Dsctp_conn.c360 int sleep = sctp->sctp_cansleep ? KM_SLEEP : KM_NOSLEEP; local
530 if ((err = sctp_add_faddr(sctp, &dstaddr, sleep,
H A Dsctp_addr.c232 sctp_get_all_ipifs(sctp_t *sctp, int sleep) argument
265 error = sctp_ipif_hash_insert(sctp, sctp_ipif, sleep,
455 sctp_ipif_hash_insert(sctp_t *sctp, sctp_ipif_t *ipif, int sleep, argument
490 ipif_obj = kmem_zalloc(sizeof (sctp_saddr_ipif_t), sleep);
611 sctp_copy_ipifs(sctp_ipif_hash_t *list1, sctp_t *sctp2, int sleep) argument
621 error = sctp_ipif_hash_insert(sctp2, obj->saddr_ipifp, sleep,
635 sctp_dup_saddrs(sctp_t *sctp1, sctp_t *sctp2, int sleep) argument
641 return (sctp_get_all_ipifs(sctp2, sleep));
649 error = sctp_copy_ipifs(&sctp1->sctp_saddrs[i], sctp2, sleep);
H A Dsctp.c781 sctp_init_values(sctp_t *sctp, sctp_t *psctp, int sleep) argument
814 if (sleep == KM_SLEEP) {
911 if ((err = sctp_build_hdrs(sctp, sleep)) != 0) {
1328 int sleep = flags & SCTP_CAN_BLOCK ? KM_SLEEP : KM_NOSLEEP; local
1364 if ((connp = ipcl_conn_create(IPCL_SCTPCONN, sleep,
1378 if ((ack_mp = sctp_timer_alloc(sctp, sctp_ack_timer, sleep)) == NULL ||
1380 sleep)) == NULL) {
1401 if (sctp_init_values(sctp, psctp, sleep) != 0) {
1424 if (sctp_dup_saddrs(psctp, sctp, sleep)) {
H A Dsctp_common.c455 * connection security label. If sleep is true, this function should
463 sctp_add_faddr(sctp_t *sctp, in6_addr_t *addr, int sleep, boolean_t first) argument
511 if ((faddr = kmem_cache_alloc(sctp_kmem_faddr_cache, sleep)) == NULL)
514 timer_mp = sctp_timer_alloc((sctp), sctp_rexmit_timer, sleep);
916 sctp_build_hdrs(sctp_t *sctp, int sleep) argument
948 hdrs = kmem_alloc(hdrs_len, sleep);
988 hdrs = kmem_alloc(hdrs_len, sleep);
1511 int sleep, sctp_stack_t *sctps, ip_recv_attr_t *ira)
1557 sleep);
1568 sleep);
1510 sctp_secure_restart_check(mblk_t *pkt, sctp_chunk_hdr_t *ich, uint32_t ports, int sleep, sctp_stack_t *sctps, ip_recv_attr_t *ira) argument
[all...]
/illumos-gate/usr/src/uts/common/io/ib/adapters/tavor/
H A Dtavor_mr.c61 uint_t sleep, uint_t *dereg_level);
65 ddi_dma_handle_t dmahdl, uint_t sleep);
191 uint_t sleep, mr_is_umem; local
198 * Check the sleep flag. Ensure that it is consistent with the
200 * context, then we shouldn't be attempting to sleep).
202 sleep = (mr_attr->mr_flags & IBT_MR_NOSLEEP) ? TAVOR_NOSLEEP :
204 if ((sleep == TAVOR_SLEEP) &&
205 (sleep != TAVOR_SLEEPFLAG_FOR_CONTEXT())) {
222 status = tavor_rsrc_alloc(state, TAVOR_MPT, 1, sleep, &mpt);
235 status = tavor_rsrc_alloc(state, TAVOR_MRHDL, 1, sleep,
476 tavor_mr_deregister(tavor_state_t *state, tavor_mrhdl_t *mrhdl, uint_t level, uint_t sleep) argument
911 uint_t sleep; local
1037 tavor_mw_free(tavor_state_t *state, tavor_mwhdl_t *mwhdl, uint_t sleep) argument
1156 uint_t sleep, mtt_pgsize_bits, bind_type, mr_is_umem; local
1497 uint_t sleep; local
1670 uint_t sleep; local
1799 uint_t sleep, dereg_level; local
2111 tavor_mr_rereg_xlat_helper(tavor_state_t *state, tavor_mrhdl_t mr, tavor_bind_info_t *bind, tavor_mr_options_t *op, uint64_t *mtt_addr, uint_t sleep, uint_t *dereg_level) argument
2525 tavor_mr_mem_bind(tavor_state_t *state, tavor_bind_info_t *bind, ddi_dma_handle_t dmahdl, uint_t sleep) argument
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Dddi.c375 getrbuf(int sleep) argument
379 bp = kmem_alloc(sizeof (struct buf), sleep);
668 * Used by open and close procedures to "sleep" waiting for messages to
756 * put or service procedures. We can not sleep on sq_wait since an
783 * Used by open and close procedures to "sleep" waiting for messages to
868 * put or service procedures. We can not sleep on sq_wait since an
954 * put or service procedures. We can not sleep on sq_wait since an
1004 * qtimeout() can't fail and can't sleep, so panic if memory is not
H A Dmodhash.c80 * keycmp, sleep)
102 * sleep, returning the storage handle in 'handle'.
420 * sleep - should be KM_SLEEP or KM_NOSLEEP, to indicate whether
421 * to sleep for memory, or fail in low-memory conditions.
434 int sleep) /* whether to sleep for mem */
439 if ((mod_hash = kmem_zalloc(MH_SIZE(nchains), sleep)) == NULL)
442 mod_hash->mh_name = kmem_alloc(strlen(hname) + 1, sleep);
449 mod_hash->mh_sleep = sleep;
426 mod_hash_create_extended( char *hname, size_t nchains, void (*kdtor)(mod_hash_key_t), void (*vdtor)(mod_hash_val_t), uint_t (*hash_alg)(void *, mod_hash_key_t), void *hash_alg_data, int (*keycmp)(mod_hash_key_t, mod_hash_key_t), int sleep) argument
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/fcoei/
H A Dfcoei_lv.c227 * sleep = This call can sleep or not
237 fcoei_init_pkt(void *fca_handle, fc_packet_t *fpkt, int sleep) argument
242 ASSERT(sleep + 1);
450 * flags - Set to KM_SLEEP if the function may sleep, or KM_NOSLEEP if
451 * the function may not sleep.
/illumos-gate/usr/src/uts/sun4v/io/niumx/
H A Dniumx.c650 int sleep = (waitfp == DDI_DMA_SLEEP) ? KM_SLEEP : KM_NOSLEEP; local
661 if ((mp = kmem_alloc(sizeof (ddi_dma_impl_t), sleep)) == 0) {
/illumos-gate/usr/src/uts/sun4/io/px/
H A Dpx_dma.c63 int sleep = (waitfp == DDI_DMA_SLEEP) ? KM_SLEEP : KM_NOSLEEP; local
66 if ((mp = kmem_alloc(sizeof (px_dma_hdl_t), sleep)) == 0) {
788 int sleep = dmareq->dmar_fp == DDI_DMA_SLEEP ? VM_SLEEP : VM_NOSLEEP; local
800 MMU_PAGE_SIZE, sleep);
813 sleep);
/illumos-gate/usr/src/uts/sun4u/io/pci/
H A Dpci_dma.c254 int sleep = (waitfp == DDI_DMA_SLEEP) ? KM_SLEEP : KM_NOSLEEP; local
257 if ((mp = kmem_alloc(sizeof (pci_dma_hdl_t), sleep)) == 0) {
993 int sleep = dmareq->dmar_fp == DDI_DMA_SLEEP ? VM_SLEEP : VM_NOSLEEP; local
1005 IOMMU_PAGE_SIZE, sleep);
1018 sleep);

Completed in 163 milliseconds

123