Function report |
Source Code:kernel\locking\rwsem.c |
Create Date:2022-07-28 09:48:01 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:All writes to owner are protected by WRITE_ONCE() to make sure that* store tearing can't happen as optimistic spinners may read and use* the owner value concurrently without lock
Proto:static inline void rwsem_set_owner(struct rw_semaphore *sem)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct rw_semaphore * | sem |
Name | Describe |
---|---|
rwsem_try_write_lock | This function must be called with the sem->wait_lock held to prevent* race conditions between checking the rwsem wait list and setting the* If wstate is WRITER_HANDOFF, it will make sure that either the handoff |
__down_write | lock for writing |
__down_write_killable | |
__down_write_trylock |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |