fs/affs/symlink.c

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

File Facts

System
Linux kernel
Corpus path
fs/affs/symlink.c
Extension
.c
Size
1644 bytes
Lines
76
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

if (c == '/' && lc == '/' && i < 1020) {	/* parent dir */
			link[i++] = '.';
			link[i++] = '.';
		}
		link[i++] = c;
		lc = c;
		j++;
	}
	link[i] = '\0';
	affs_brelse(bh);
	folio_mark_uptodate(folio);
	folio_unlock(folio);
	return 0;
fail:
	folio_unlock(folio);
	return -EIO;
}

const struct address_space_operations affs_symlink_aops = {
	.read_folio	= affs_symlink_read_folio,
};

const struct inode_operations affs_symlink_inode_operations = {
	.get_link	= page_get_link,
	.setattr	= affs_setattr,
};

Annotation

Implementation Notes