pid_t: unify usage of special task IDs

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2022-03-21 23:47:09 +01:00
committed by Xiang Xiao
parent 2ee12b2c5d
commit 68902d8732
150 changed files with 359 additions and 456 deletions
+2 -2
View File
@@ -160,7 +160,7 @@ typedef uint32_t mmsize_t;
struct mm_allocnode_s
{
#ifdef CONFIG_DEBUG_MM
uint32_t pid; /* The pid for caller */
pid_t pid; /* The pid for caller */
FAR void *backtrace[MM_BACKTRACE_DEPTH]; /* The backtrace buffer for caller */
#endif
mmsize_t size; /* Size of this chunk */
@@ -175,7 +175,7 @@ static_assert(SIZEOF_MM_ALLOCNODE <= MM_MIN_CHUNK,
struct mm_freenode_s
{
#ifdef CONFIG_DEBUG_MM
uint32_t pid; /* The pid for caller */
pid_t pid; /* The pid for caller */
FAR void *backtrace[MM_BACKTRACE_DEPTH]; /* The backtrace buffer for caller */
#endif
mmsize_t size; /* Size of this chunk */