fs/coda/coda_linux.c
Source file repositories/reference/linux-study-clean/fs/coda/coda_linux.c
File Facts
- System
- Linux kernel
- Corpus path
fs/coda/coda_linux.c- Extension
.c- Size
- 5355 bytes
- Lines
- 209
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/kernel.hlinux/time.hlinux/fs.hlinux/stat.hlinux/errno.hlinux/uaccess.hlinux/string.hlinux/coda.hcoda_psdev.hcoda_linux.h
Detected Declarations
function coda_f2sfunction coda_iscontrolfunction coda_flags_to_cflagsfunction coda_to_timespec64function timespec64_to_codafunction coda_inode_typefunction coda_vattr_to_iattrfunction coda_iattr_to_vattr
Annotated Snippet
if ( S_ISDIR(mode) ) {
vattr->va_type = C_VDIR;
} else if ( S_ISREG(mode) ) {
vattr->va_type = C_VREG;
} else if ( S_ISLNK(mode) ) {
vattr->va_type = C_VLNK;
} else {
/* don't do others */
vattr->va_type = C_VNON;
}
#endif
/* set those vattrs that need change */
valid = iattr->ia_valid;
if ( valid & ATTR_MODE ) {
vattr->va_mode = iattr->ia_mode;
}
if ( valid & ATTR_UID ) {
vattr->va_uid = (vuid_t) from_kuid(&init_user_ns, iattr->ia_uid);
}
if ( valid & ATTR_GID ) {
vattr->va_gid = (vgid_t) from_kgid(&init_user_ns, iattr->ia_gid);
}
if ( valid & ATTR_SIZE ) {
vattr->va_size = iattr->ia_size;
}
if ( valid & ATTR_ATIME ) {
vattr->va_atime = timespec64_to_coda(iattr->ia_atime);
}
if ( valid & ATTR_MTIME ) {
vattr->va_mtime = timespec64_to_coda(iattr->ia_mtime);
}
if ( valid & ATTR_CTIME ) {
vattr->va_ctime = timespec64_to_coda(iattr->ia_ctime);
}
}
Annotation
- Immediate include surface: `linux/types.h`, `linux/kernel.h`, `linux/time.h`, `linux/fs.h`, `linux/stat.h`, `linux/errno.h`, `linux/uaccess.h`, `linux/string.h`.
- Detected declarations: `function coda_f2s`, `function coda_iscontrol`, `function coda_flags_to_cflags`, `function coda_to_timespec64`, `function timespec64_to_coda`, `function coda_inode_type`, `function coda_vattr_to_iattr`, `function coda_iattr_to_vattr`.
- Atlas domain: Core OS / VFS And Filesystem Core.
- Implementation status: source implementation candidate.
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.