/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab/ |
D | README.txt | 40 k_mem_slab_alloc OK, p[0] = 0x00406400 42 k_mem_slab_alloc OK, p[1] = 0x00406000 44 k_mem_slab_alloc RC_FAIL expected as all (2) blocks are used. 63 k_mem_slab_alloc OK, p[0] = 0x00406000 65 k_mem_slab_alloc OK, p[1] = 0x00406400 67 k_mem_slab_alloc RC_FAIL expected as all (2) blocks are used. 72 main: k_mem_slab_alloc times out which is expected 78 main: k_mem_slab_alloc OK, block allocated at 0x00406000 84 main: k_mem_slab_alloc OK, block allocated at 0x00406400
|
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_api/src/ |
D | test_mslab_api.c | 39 zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0, in tmslab_alloc_free() 59 zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0, in tmslab_alloc_align() 80 zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0, in tmslab_alloc_timeout() 86 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_NO_WAIT), -ENOMEM, in tmslab_alloc_timeout() 89 err = k_mem_slab_alloc(pslab, &block_fail, K_MSEC(TIMEOUT)); in tmslab_alloc_timeout() 115 zassert_true(k_mem_slab_alloc(pslab, &block[i], K_NO_WAIT) == 0, in tmslab_used_get() 125 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_NO_WAIT), -ENOMEM, in tmslab_used_get() 132 zassert_equal(k_mem_slab_alloc(pslab, &block_fail, K_MSEC(TIMEOUT)), in tmslab_used_get() 164 zassert_equal(k_mem_slab_alloc(&kmslab, &ptr[i], K_NO_WAIT), 0, in helper_thread() 321 ret_value = k_mem_slab_alloc(&kmslab, &b, K_MSEC(20)); in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/subsys/portability/cmsis_rtos_v1/ |
D | cmsis_mailq.c | 42 retval = k_mem_slab_alloc( in osMailAlloc() 46 retval = k_mem_slab_alloc( in osMailAlloc() 50 retval = k_mem_slab_alloc( in osMailAlloc() 76 retval = k_mem_slab_alloc( in osMailCAlloc() 80 retval = k_mem_slab_alloc( in osMailCAlloc() 84 retval = k_mem_slab_alloc( in osMailCAlloc()
|
D | cmsis_mempool.c | 33 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolAlloc() 49 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolCAlloc()
|
D | cmsis_mutex.c | 29 if (k_mem_slab_alloc(&cmsis_mutex_slab, (void **)&mutex, K_MSEC(100)) == 0) { in osMutexCreate()
|
D | cmsis_semaphore.c | 30 if (k_mem_slab_alloc(&cmsis_semaphore_slab, in osSemaphoreCreate()
|
D | cmsis_timer.c | 51 if (k_mem_slab_alloc(&cmsis_timer_slab, (void **)&timer, K_MSEC(100)) == 0) { in osTimerCreate()
|
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab/src/ |
D | main.c | 136 zassert_equal(k_mem_slab_alloc(&map_lgblks, &p[i], K_NO_WAIT), 0, in test_slab_get_all_blocks() 148 zassert_equal(k_mem_slab_alloc(&map_lgblks, &errptr, K_NO_WAIT), -ENOMEM, in test_slab_get_all_blocks() 244 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_MSEC(20)); in ZTEST() 250 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_MSEC(50)); in ZTEST() 259 ret_value = k_mem_slab_alloc(&map_lgblks, &b, K_FOREVER); in ZTEST()
|
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_concept/src/ |
D | test_mslab_alloc_wait.c | 25 zassert_true(k_mem_slab_alloc(&mslab1, &block, TIMEOUT) == -EAGAIN, in tmslab_alloc_wait_timeout() 32 zassert_true(k_mem_slab_alloc(&mslab1, &block_ok, TIMEOUT) == 0); in tmslab_alloc_wait_ok() 59 zassert_equal(k_mem_slab_alloc(&mslab1, &block[i], K_NO_WAIT), in ZTEST()
|
/Zephyr-Core-3.5.0/subsys/portability/cmsis_rtos_v2/ |
D | mempool.c | 49 if (k_mem_slab_alloc(&cv2_mem_slab, (void **)&mslab, K_MSEC(100)) == 0) { in osMemoryPoolNew() 110 retval = k_mem_slab_alloc( in osMemoryPoolAlloc() 114 retval = k_mem_slab_alloc( in osMemoryPoolAlloc() 118 retval = k_mem_slab_alloc( in osMemoryPoolAlloc()
|
D | mutex.c | 42 if (k_mem_slab_alloc(&cv2_mutex_slab, (void **)&mutex, K_MSEC(100)) == 0) { in osMutexNew()
|
D | semaphore.c | 37 if (k_mem_slab_alloc(&cv2_semaphore_slab, in osSemaphoreNew()
|
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_stats/src/ |
D | main.c | 66 status = k_mem_slab_alloc(&kmslab, &memory[0], K_NO_WAIT); in ZTEST() 69 status = k_mem_slab_alloc(&kmslab, &memory[1], K_NO_WAIT); in ZTEST() 72 status = k_mem_slab_alloc(&kmslab, &memory[2], K_NO_WAIT); in ZTEST() 108 status = k_mem_slab_alloc(&kmslab, &memory[1], K_NO_WAIT); in ZTEST()
|
/Zephyr-Core-3.5.0/drivers/modem/ |
D | modem_iface_uart_async.c | 38 rc = k_mem_slab_alloc(&uart_modem_async_rx_slab, (void **)&buf, K_NO_WAIT); in iface_uart_async_callback() 68 rc = k_mem_slab_alloc(&uart_modem_async_rx_slab, (void **)&buf, K_FOREVER); in iface_uart_async_callback() 158 k_mem_slab_alloc(&uart_modem_async_rx_slab, (void **)&buf, K_FOREVER); in modem_iface_uart_init_dev()
|
/Zephyr-Core-3.5.0/tests/bluetooth/audio/mocks/src/ |
D | mem_slab.c | 10 int k_mem_slab_alloc(struct k_mem_slab *slab, void **mem, k_timeout_t timeout) in k_mem_slab_alloc() function
|
/Zephyr-Core-3.5.0/tests/benchmarks/app_kernel/src/ |
D | memmap_b.c | 30 alloc_status = k_mem_slab_alloc(&MAP1, &p, K_FOREVER); in memorymap_test()
|
/Zephyr-Core-3.5.0/lib/libc/arcmwdt/ |
D | threading.c | 32 alloc_fail = !!k_mem_slab_alloc(&z_arcmwdt_lock_slab, mutex_ptr, K_NO_WAIT); in _mwmutex_create()
|
/Zephyr-Core-3.5.0/drivers/i2s/ |
D | i2s_common.c | 45 ret = k_mem_slab_alloc(tx_cfg->mem_slab, &mem_block, K_FOREVER); in z_impl_i2s_buf_write()
|
D | i2s_handlers.c | 96 ret = k_mem_slab_alloc(tx_cfg->mem_slab, &mem_block, K_FOREVER); in z_vrfy_i2s_buf_write()
|
/Zephyr-Core-3.5.0/tests/benchmarks/sys_kernel/src/ |
D | mem_slab.c | 38 if (k_mem_slab_alloc(&my_slab, &slab_array[i], K_NO_WAIT) in mem_slab_alloc_test()
|
/Zephyr-Core-3.5.0/subsys/demand_paging/backing_store/ |
D | ram.c | 95 ret = k_mem_slab_alloc(&backing_slabs, &slab, K_NO_WAIT); in k_mem_paging_backing_store_location_get()
|
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab_threadsafe/src/ |
D | test_mslab_threadsafe.c | 51 ret = k_mem_slab_alloc(slab, &block[i], TIMEOUT); in tmslab_api()
|
/Zephyr-Core-3.5.0/tests/drivers/i2s/i2s_speed/src/ |
D | test_i2s_speed.c | 206 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block, K_FOREVER); in ZTEST() 287 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block[tx_idx], in ZTEST() 374 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block, K_FOREVER); in ZTEST() 444 ret = k_mem_slab_alloc(&tx_0_mem_slab, &tx_block[tx_idx], in ZTEST()
|
/Zephyr-Core-3.5.0/samples/boards/litex/i2s/src/ |
D | main.c | 109 k_mem_slab_alloc(&i2s_tx_mem_slab, &tx_mem_block, K_NO_WAIT); in main()
|
/Zephyr-Core-3.5.0/doc/kernel/memory_management/ |
D | slabs.rst | 102 A memory block is allocated by calling :c:func:`k_mem_slab_alloc`. 112 if (k_mem_slab_alloc(&my_slab, (void **)&block_ptr, K_MSEC(100)) == 0) { 131 k_mem_slab_alloc(&my_slab, (void **)&block_ptr, K_FOREVER);
|