fscache_write(9)
πΎ NAME πΎ
fscache_write β start a write to the cache. okay bestie, this is fscache_write(9) from the Kernel API Manual, and we are gonna get you comfy with it πβ¨
β¨ SYNOPSIS β¨
the whole vibe-check signature, fr fr π
int fscache_write (struct netfs_cache_resources *cres , loff_t start_pos
, struct iov_iter *iter , netfs_io_terminated_t term_func , void
*term_func_priv );
π ARGUMENTS π
cresβ the cache resources to use πstart_posβ the beginning file offset in the cache file β¨iterβ the data to write, and also the length π«Άterm_funcβ the function to call upon completion πterm_func_privβ the private data forterm_funcπ
π¦ DESCRIPTION π¦
okay so, fscache_write starts a write to the cache. cres indicates the cache object to write to, and it must be obtained by a call to fscache_begin_operation beforehand. no cap, that part matters ππ₯
The data to be written is obtained from the iterator, iter, and that also indicates the size of the operation. start_pos is the start position in the file. literally the coordinates of the whole thing π«
Upon termination of the operation, term_func will be called and supplied with term_func_priv plus the amount of data written, if successful, or the error code otherwise. so it gets the private data and the result β slay, that's the callback tea βπ
π SEE ALSO π
Kernel file ./include/linux/fscache.h β go peek, iykyk π
fscache_acquire_volume(9)fscache_relinquish_volume(9)fscache_acquire_cookie(9)fscache_use_cookie(9)fscache_unuse_cookie(9)fscache_relinquish_cookie(9)fscache_update_cookie(9)fscache_resize_cookie(9)fscache_invalidate(9)fscache_operation_valid(9)fscache_begin_read_operation(9)fscache_end_operation(9)fscache_read(9)fscache_begin_write_operation(9)fscache_clear_page_bits(9)fscache_write_to_cache(9)fscache_note_page_release(9)
mwah π thatβs the whole page, bestie. signing off with fscache_write(9) Β· source/version: ./include/linux Β· date: October 2026 π«Άπ
π¦ 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