include/linux/fserror.h
Source file repositories/reference/linux-study-clean/include/linux/fserror.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/fserror.h- Extension
.h- Size
- 1833 bytes
- Lines
- 76
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct fserror_eventenum fserror_typefunction fserror_report_iofunction fserror_report_data_lostfunction fserror_report_file_metadatafunction fserror_report_metadatafunction fserror_report_shutdown
Annotated Snippet
struct fserror_event {
struct work_struct work;
struct super_block *sb;
struct inode *inode;
loff_t pos;
u64 len;
enum fserror_type type;
/* negative error number */
int error;
};
void fserror_report(struct super_block *sb, struct inode *inode,
enum fserror_type type, loff_t pos, u64 len, int error,
gfp_t gfp);
static inline void fserror_report_io(struct inode *inode,
enum fserror_type type, loff_t pos,
u64 len, int error, gfp_t gfp)
{
fserror_report(inode->i_sb, inode, type, pos, len, error, gfp);
}
static inline void fserror_report_data_lost(struct inode *inode, loff_t pos,
u64 len, gfp_t gfp)
{
fserror_report(inode->i_sb, inode, FSERR_DATA_LOST, pos, len, -EIO,
gfp);
}
static inline void fserror_report_file_metadata(struct inode *inode, int error,
gfp_t gfp)
{
fserror_report(inode->i_sb, inode, FSERR_METADATA, 0, 0, error, gfp);
}
static inline void fserror_report_metadata(struct super_block *sb, int error,
gfp_t gfp)
{
fserror_report(sb, NULL, FSERR_METADATA, 0, 0, error, gfp);
}
static inline void fserror_report_shutdown(struct super_block *sb, gfp_t gfp)
{
fserror_report(sb, NULL, FSERR_METADATA, 0, 0, -ESHUTDOWN, gfp);
}
#endif /* _LINUX_FSERROR_H__ */
Annotation
- Detected declarations: `struct fserror_event`, `enum fserror_type`, `function fserror_report_io`, `function fserror_report_data_lost`, `function fserror_report_file_metadata`, `function fserror_report_metadata`, `function fserror_report_shutdown`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.