Function report |
Source Code:lib\xarray.c |
Create Date:2022-07-28 06:13:21 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__xas_nomem() - Drop locks and allocate memory if needed.*@xas: XArray operation state.*@gfp: Memory allocation flags.* Internal variant of xas_nomem().* Return: true if memory was needed, and was successfully allocated.
Proto:static bool __xas_nomem(struct xa_state *xas, gfp_t gfp)__must_hold(xas->xa->xa_lock)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct xa_state * | xas | |
gfp_t | gfp |
329 | Return false |
331 | If private: The rest of the data structure is not to be used directly. & XA_FLAGS_ACCOUNT Then gfp |= __GFP_ACCOUNT |
333 | If gfpflags_allow_blocking(gfp) Then |
334 | xas_unlock_type(xas, lock_type) |
336 | xas_lock_type(xas, lock_type) |
337 | Else |
340 | If Not xa_alloc Then Return false |
343 | xa_node = XAS_RESTART |
344 | Return true |
Name | Describe |
---|---|
__xa_store | __xa_store() - Store this entry in the XArray |
__xa_cmpxchg | __xa_cmpxchg() - Store this entry in the XArray |
__xa_insert | __xa_insert() - Store this entry in the XArray if no entry is present.*@xa: XArray.*@index: Index into array.*@entry: New entry.*@gfp: Memory allocation flags.* Inserting a NULL entry will store a reserved entry (like xa_reserve())* if no entry is present |
__xa_alloc |
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 |