fs/xfs/scrub/rgb_bitmap.h

Source file repositories/reference/linux-study-clean/fs/xfs/scrub/rgb_bitmap.h

File Facts

System
Linux kernel
Corpus path
fs/xfs/scrub/rgb_bitmap.h
Extension
.h
Size
910 bytes
Lines
38
Domain
Core OS
Bucket
VFS And Filesystem Core
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

struct xrgb_bitmap {
	struct xbitmap32	rgbitmap;
};

static inline void xrgb_bitmap_init(struct xrgb_bitmap *bitmap)
{
	xbitmap32_init(&bitmap->rgbitmap);
}

static inline void xrgb_bitmap_destroy(struct xrgb_bitmap *bitmap)
{
	xbitmap32_destroy(&bitmap->rgbitmap);
}

static inline int xrgb_bitmap_set(struct xrgb_bitmap *bitmap,
		xfs_rgblock_t start, xfs_extlen_t len)
{
	return xbitmap32_set(&bitmap->rgbitmap, start, len);
}

static inline int xrgb_bitmap_walk(struct xrgb_bitmap *bitmap,
		xbitmap32_walk_fn fn, void *priv)
{
	return xbitmap32_walk(&bitmap->rgbitmap, fn, priv);
}

#endif /* __XFS_SCRUB_RGB_BITMAP_H__ */

Annotation

Implementation Notes