mm/mempool: Fix the minor style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
7bd7daa659
commit
27afd0e5e3
@ -44,10 +44,10 @@ typedef CODE FAR void *(*mempool_alloc_t)(FAR struct mempool_s *pool,
|
|||||||
typedef CODE void (*mempool_free_t)(FAR struct mempool_s *pool,
|
typedef CODE void (*mempool_free_t)(FAR struct mempool_s *pool,
|
||||||
FAR void *addr);
|
FAR void *addr);
|
||||||
|
|
||||||
typedef CODE FAR void *(*mempool_multiple_alloc_t)(FAR void *args,
|
typedef CODE FAR void *(*mempool_multiple_alloc_t)(FAR void *arg,
|
||||||
size_t alignment,
|
size_t alignment,
|
||||||
size_t size);
|
size_t size);
|
||||||
typedef CODE void (*mempool_multiple_free_t)(FAR void *args, FAR void *addr);
|
typedef CODE void (*mempool_multiple_free_t)(FAR void *arg, FAR void *addr);
|
||||||
|
|
||||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL)
|
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL)
|
||||||
struct mempool_procfs_entry_s
|
struct mempool_procfs_entry_s
|
||||||
@ -90,12 +90,12 @@ struct mempool_s
|
|||||||
#if CONFIG_MM_BACKTRACE >= 0
|
#if CONFIG_MM_BACKTRACE >= 0
|
||||||
struct list_node alist; /* The used block list in mempool */
|
struct list_node alist; /* The used block list in mempool */
|
||||||
#else
|
#else
|
||||||
size_t nalloc; /* The number of used block in mempool */
|
size_t nalloc; /* The number of used block in mempool */
|
||||||
#endif
|
#endif
|
||||||
spinlock_t lock; /* The protect lock to mempool */
|
spinlock_t lock; /* The protect lock to mempool */
|
||||||
sem_t waitsem; /* The semaphore of waiter get free block */
|
sem_t waitsem; /* The semaphore of waiter get free block */
|
||||||
size_t nexpend; /* The number of expend memory for mempool */
|
size_t nexpend; /* The number of expend memory for mempool */
|
||||||
size_t totalsize; /* Total size of the expend for mempoll */
|
size_t totalsize; /* Total size of the expend for mempoll */
|
||||||
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL)
|
#if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MEMPOOL)
|
||||||
struct mempool_procfs_entry_s procfs; /* The entry of procfs */
|
struct mempool_procfs_entry_s procfs; /* The entry of procfs */
|
||||||
#endif
|
#endif
|
||||||
|
@ -50,7 +50,7 @@ struct mpool_dict_s
|
|||||||
|
|
||||||
struct mempool_multiple_s
|
struct mempool_multiple_s
|
||||||
{
|
{
|
||||||
FAR struct mempool_s * pools; /* The memory pool array */
|
FAR struct mempool_s *pools; /* The memory pool array */
|
||||||
size_t npools; /* The number of memory pool array elements */
|
size_t npools; /* The number of memory pool array elements */
|
||||||
size_t expandsize; /* The number not will use it to init erery
|
size_t expandsize; /* The number not will use it to init erery
|
||||||
* pool expandsize
|
* pool expandsize
|
||||||
@ -86,7 +86,7 @@ struct mempool_multiple_s
|
|||||||
* Private Functions
|
* Private Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
static inline struct mempool_s *
|
static inline FAR struct mempool_s *
|
||||||
mempool_multiple_find(FAR struct mempool_multiple_s *mpool, size_t size)
|
mempool_multiple_find(FAR struct mempool_multiple_s *mpool, size_t size)
|
||||||
{
|
{
|
||||||
size_t right;
|
size_t right;
|
||||||
|
Loading…
Reference in New Issue
Block a user