mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
register_driver: fix driver modes accross the code
State of problem: - Some drivers that do not support write operations (does not have write handler or ioctl do not perform any write actions) are registered with write permissions - Some drivers that do not support read operation (does not have read handler or ioctl do not perform any read actions) are registered with read permissions - Some drivers are registered with execute permissions Solution: - Iterate code where register_driver() is used and change 'mode' parameter to reflect the actual read/write operations executed by a driver - Remove execute permissions from 'mode' parameter Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
1d89d9ae4b
commit
41c95da594
@@ -855,8 +855,8 @@ void nxsem_add_holder_tcb(FAR struct tcb_s *htcb, FAR sem_t *sem)
|
||||
{
|
||||
FAR struct semholder_s *pholder;
|
||||
|
||||
/* If priority inheritance is disabled for this thread or it is IDLE hread,
|
||||
* then do not add the holder.
|
||||
/* If priority inheritance is disabled for this thread or it is IDLE
|
||||
* thread, then do not add the holder.
|
||||
* If there are never holders of the semaphore, the priority
|
||||
* inheritance is effectively disabled.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user