fs/efs/file.c

Source file repositories/reference/linux-study-clean/fs/efs/file.c

File Facts

System
Linux kernel
Corpus path
fs/efs/file.c
Extension
.c
Size
792 bytes
Lines
43
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

int efs_bmap(struct inode *inode, efs_block_t block) {

	if (block < 0) {
		pr_warn("%s(): block < 0\n", __func__);
		return 0;
	}

	/* are we about to read past the end of a file ? */
	if (!(block < inode->i_blocks))
		return 0;

	return efs_map_block(inode, block);
}

Annotation

Implementation Notes