file_sample_sb_err(9)
π
file_sample_sb_err(9) β Kernel API Manual β¨
okay bestie, welcome to the file_sample_sb_err page, section 9 of the Kernel API Manual π it's short, it's sweet, and it's lowkey important β let's get into it π«Ά
πΈ NAME πΈ
file_sample_sb_err β sample the current errseq_t to test for later errors β¨
π SYNOPSIS π
errseq_t file_sample_sb_err (struct file *file );
that's it. that's the whole signature. iconic behaviour, no notes π
π¦ ARGUMENTS π¦
fileβ file pointer to be sampled π
π§ DESCRIPTION π§
so what does it actually do? it grabs the most current superblock-level errseq_t value for the given struct file. that's the whole vibe β you take a sample of the error sequence right now, and later you can check it to see if any errors happened in the meantime π
fr fr, that's it. no cap, no hidden extras π
π₯ SEE ALSO π₯
bestie, they really went off with this list, so buckle up π β Kernel file ./include/linux/pagemap.h, filemap_set_wb_err(9), filemap_check_wb_err(9), filemap_sample_wb_err(9), mapping_set_error(9), mapping_set_large_folios(9), mapping_align_index(9), mapping_pmd_folio_support(9), folio_flush_mapping(9), folio_inode(9), folio_attach_private(9), folio_change_private(9), folio_detach_private(9), fgf_t(9), fgf_set_order(9), write_begin_get_folio(9), filemap_get_folio(9), filemap_lock_folio(9), filemap_grab_folio(9), find_get_page(9), find_lock_page(9), find_or_create_page(9), grab_cache_page_nowait(9), folio_next_index(9), folio_next_pos(9), folio_file_page(9), folio_contains(9), page_pgoff(9), folio_pos(9), linear_page_delta(9), linear_page_index(9), linear_anon_page_index(9), folio_trylock(9), folio_lock(9), lock_page(9), folio_lock_killable(9), filemap_range_needs_writeback(9), struct readahead_control(9), page_cache_sync_readahead(9), page_cache_async_readahead(9), readahead_folio(9), readahead_pos(9), readahead_length(9), readahead_index(9), readahead_count(9), readahead_batch_length(9), folio_mkwrite_check_truncate(9), i_blocks_per_folio(9) π
like, that's a whole friend group and file_sample_sb_err is the main character of it, iykyk π
π tiny reminder bestie: everything you just read lives under ./include/linux β go touch some source code, it's good for you πΈ
and that's the page!! mwah π this one came from ./include/linux, dated October 2026, and yes the manual is literally called file_sample_sb_err(9) β slay, periodt πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms