include/linux/hugetlb_inline.h

Source file repositories/reference/linux-study-clean/include/linux/hugetlb_inline.h

File Facts

System
Linux kernel
Corpus path
include/linux/hugetlb_inline.h
Extension
.h
Size
502 bytes
Lines
29
Domain
Core OS
Bucket
Core Kernel Interface
Inferred role
Core OS: implementation source
Status
source implementation candidate

Why This File Exists

Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _LINUX_HUGETLB_INLINE_H
#define _LINUX_HUGETLB_INLINE_H

#include <linux/mm.h>

#ifdef CONFIG_HUGETLB_PAGE

static inline bool is_vma_hugetlb_flags(const vma_flags_t *flags)
{
	return vma_flags_test(flags, VMA_HUGETLB_BIT);
}

#else

static inline bool is_vma_hugetlb_flags(const vma_flags_t *flags)
{
	return false;
}

#endif

static inline bool is_vm_hugetlb_page(const struct vm_area_struct *vma)
{
	return is_vma_hugetlb_flags(&vma->flags);
}

#endif

Annotation

Implementation Notes