tools/testing/shared/maple-shared.h

Source file repositories/reference/linux-study-clean/tools/testing/shared/maple-shared.h

File Facts

System
Linux kernel
Corpus path
tools/testing/shared/maple-shared.h
Extension
.h
Size
637 bytes
Lines
25
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: implementation source
Status
source implementation candidate

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __MAPLE_SHARED_H__
#define __MAPLE_SHARED_H__

#define CONFIG_DEBUG_MAPLE_TREE
#define CONFIG_MAPLE_SEARCH
#define MAPLE_32BIT (MAPLE_NODE_SLOTS > 31)
#include "shared.h"
#include <stdlib.h>
#include <time.h>
#include "linux/init.h"

void maple_rcu_cb(struct rcu_head *head);
#define rcu_cb		maple_rcu_cb

#define kfree_rcu(_struct, _memb)		\
do {                                            \
    typeof(_struct) _p_struct = (_struct);      \
                                                \
    call_rcu(&((_p_struct)->_memb), rcu_cb);    \
} while(0);


#endif /* __MAPLE_SHARED_H__ */

Annotation

Implementation Notes