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.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
affs.h
Detected Declarations
function Copyright
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
- Immediate include surface: `affs.h`.
- Detected declarations: `function Copyright`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.