Home
last modified time | relevance | path

Searched refs:old_ptr (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.7/kernel/src/arch/x86_64/asm/
Dcmpxchg.rs3 fn __try_cmpxchg_q(ptr: *mut u64, old_ptr: *mut u64, new_ptr: *mut u64) -> bool; in __try_cmpxchg_q()
9 pub unsafe fn try_cmpxchg_q(ptr: *mut u64, old_ptr: *mut u64, new_ptr: *mut u64) -> bool { in try_cmpxchg_q()
10 let retval = __try_cmpxchg_q(ptr, old_ptr, new_ptr); in try_cmpxchg_q()
Dcmpxchg.c3 bool __try_cmpxchg_q(uint64_t *ptr, uint64_t *old_ptr, uint64_t *new_ptr) in __try_cmpxchg_q() argument
5 bool success = __raw_try_cmpxchg(ptr, old_ptr, *new_ptr, 8); in __try_cmpxchg_q()
/DragonOS-0.1.7/kernel/src/arch/x86_64/include/asm/
Dcmpxchg.h80 #define arch_try_cmpxchg(ptr, old_ptr, new_ptr) \ argument
81 __raw_try_cmpxchg((ptr), (old_ptr), (new_ptr), sizeof(*ptr))
83 bool __try_cmpxchg_q(uint64_t *ptr, uint64_t *old_ptr, uint64_t *new_ptr);
/DragonOS-0.1.7/docs/kernel/core_api/
Ddata_structures.md611   您要替换原来的old_ptr的新指针
627   传进一个ptr,使用该ptr替换掉id所对应的Old_ptr,同时你可以获取到old_ptr
636   您要替换原来的old_ptr的新指针
643 **old_ptr**
645    您需要传进该(void**)指针,old_ptr将会存放在该指针所指向的地址。
/DragonOS-0.1.7/kernel/src/libs/
Didr.c671 int idr_replace_get_old(struct idr *idp, void *ptr, int id, void **old_ptr) in idr_replace_get_old() argument
674 if (unlikely(old_ptr == NULL)) in idr_replace_get_old()
679 *old_ptr = NULL; in idr_replace_get_old()
702 *old_ptr = cur_layer->ary[__id]; in idr_replace_get_old()
722 void *old_ptr; in idr_replace() local
723 int flags = idr_replace_get_old(idp, ptr, __id, &old_ptr); in idr_replace()