mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 01:02:07 +08:00
Add and use rtems_bsd_get_task_stack_size()
This commit is contained in:
@@ -50,9 +50,6 @@
|
||||
|
||||
#define BSD_TASK_NAME rtems_build_name('_', 'B', 'S', 'D')
|
||||
|
||||
/* FIXME */
|
||||
#define BSD_MINIMUM_TASK_STACK_SIZE ((size_t) 32 * 1024)
|
||||
|
||||
struct sleepqueue {
|
||||
Thread_queue_Control sq_blocked;
|
||||
LIST_ENTRY(sleepqueue) sq_hash;
|
||||
|
@@ -90,6 +90,19 @@ rtems_status_code rtems_bsd_initialize(void);
|
||||
*/
|
||||
rtems_task_priority rtems_bsd_get_task_priority(const char *name);
|
||||
|
||||
/**
|
||||
* @brief Returns the stack size for a task specified by its name.
|
||||
*
|
||||
* Applications may provide their own implementation of this function. For
|
||||
* example they can define their implementation in the same module which calls
|
||||
* rtems_bsd_initialize().
|
||||
*
|
||||
* @param[in] name The task name.
|
||||
*
|
||||
* @return The desired task stack size.
|
||||
*/
|
||||
size_t rtems_bsd_get_task_stack_size(const char *name);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
Reference in New Issue
Block a user