From 6c51544e56cf4d568d176d0ae5ffa268f07717af Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 2 Nov 2016 14:24:16 -0600 Subject: [PATCH] Update some comments --- include/nuttx/semaphore.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/nuttx/semaphore.h b/include/nuttx/semaphore.h index 1d0afca38eb..a4bec12cd25 100644 --- a/include/nuttx/semaphore.h +++ b/include/nuttx/semaphore.h @@ -61,6 +61,10 @@ struct inode; struct nsem_inode_s { + /* This must be the first element of the structure. In sem_close() this + * structure must be cast compatible with sem_t. + */ + sem_t ns_sem; /* The contained semaphore */ /* Inode payload unique to named semaphores. ns_inode must appear first