mutek/rwlock.h header reference
[Kernel services module]

The source code of this header can be browsed online.

Description  

The rwlock functions are empty and always succeed when the scheduler is disabled in the configuration.

Members  

Type  

Functions  

Macros  

Members detail  

#define RWLOCK_INITIALIZER  

This macro is declared in mutek/rwlock.h source file, line 55.

normal rwlock object static initializer

Alternate declarations with same identifier: [1], [2].

Preprocessor condition: defined( CONFIG_MUTEK_CONTEXT_SCHED )

#define RWLOCK_INITIALIZER  

This macro is declared in mutek/rwlock.h source file, line 63.

Documentation from alternate declaration:

normal rwlock object static initializer

Alternate declarations with same identifier: [1], [2].

Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )

#define RW_LOCK_H_  

This macro is declared in mutek/rwlock.h source file, line 23.

error_t rwlock_destroy(struct rwlock_s *rwlock)  

This function is declared in mutek/rwlock.h source file, line 70.

Documentation from alternate declaration:

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )

error_t rwlock_destroy(struct rwlock_s *rwlock)  

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

error_t rwlock_init(struct rwlock_s *rwlock)  

This function is declared in mutek/rwlock.h source file, line 75.

Documentation from alternate declaration:

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )

error_t rwlock_init(struct rwlock_s *rwlock)  

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

error_t rwlock_rdlock(struct rwlock_s *rwlock)  

This function is declared in mutek/rwlock.h source file, line 80.

Documentation from alternate declaration:

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

Preprocessor condition: not defined( CONFIG_MUTEK_CONTEXT_SCHED )

error_t rwlock_rdlock(struct rwlock_s *rwlock)  

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

struct rwlock_s  

This struct is declared in mutek/rwlock.h source file, line 44.

This struct is for internal use only.

FieldDescription
int_fast8_t count;lock counter: count < 0 is write locked, count > 0 is read locked.
sched_queue_root_t wait_rd;blocked threads waiting for read
sched_queue_root_t wait_wr;blocked threads waiting for write

See also pthread_rwlock_t.

error_t rwlock_tryrdlock(struct rwlock_s *rwlock)  

Documentation from alternate declaration:

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

error_t rwlock_tryrdlock(struct rwlock_s *rwlock)  

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

error_t rwlock_trywrlock(struct rwlock_s *rwlock)  

Documentation from alternate declaration:

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

error_t rwlock_trywrlock(struct rwlock_s *rwlock)  

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

error_t rwlock_unlock(struct rwlock_s *rwlock)  

Documentation from alternate declaration:

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

error_t rwlock_unlock(struct rwlock_s *rwlock)  

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

error_t rwlock_wrlock(struct rwlock_s *rwlock)  

Documentation from alternate declaration:

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

error_t rwlock_wrlock(struct rwlock_s *rwlock)  

This is available when CONFIG_MUTEK_RWLOCK is defined.

Alternate declarations with same identifier: [1], [2].

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:38 2018 using MkDoc