tools/testing/shared/linux/kernel.h

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

File Facts

System
Linux kernel
Corpus path
tools/testing/shared/linux/kernel.h
Extension
.h
Size
538 bytes
Lines
26
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 _KERNEL_H
#define _KERNEL_H

#include "../../include/linux/kernel.h"
#include <string.h>
#include <stdio.h>
#include <limits.h>

#include <linux/compiler.h>
#include <linux/err.h>
#include <linux/bitops.h>
#include <linux/log2.h>
#include "../../../include/linux/kconfig.h"

#define printk printf
#define pr_err printk
#define pr_info printk
#define pr_debug printk
#define pr_cont printk
#define schedule()
#define PAGE_SHIFT	12

#define EXPORT_PER_CPU_SYMBOL_GPL(x)
#endif /* _KERNEL_H */

Annotation

Implementation Notes