STRUCT HMCDRV_CACHE_ENTRY(9)
π struct hmcdrv_cache_entry(9) π
okay bestie, so this is a kernel API manual page for struct hmcdrv_cache_entry β it's literally the file cache struct and it's only used on read/dir operations, no cap. the manual name is struct hmcdrv_cache_entry(9) but we're just gonna vibe with the struct itself, periodt. β¨
π SYNOPSIS π
struct hmcdrv_cache_entry {
enum hmcdrv_ftp_cmdid id;
char fname[HMCDRV_FTP_FIDENT_MAX];
size_t fsize;
loff_t ofs;
unsigned long timeout;
void *content;
size_t len;
};
π¦ MEMBERS π¦
idβ the FTP command ID, slay πfnameβ the file name, iconicfsizeβ the file size, noted π«Άofsβ start of content within the file, and it's-1if there's no cached content (so if you see a negative here, just know it's giving "nothing cached bestie" energy π)timeoutβ the cache timeout in jiffies, lowkey importantcontentβ kernel-space buffer that's 4k aligned, fancy β¨lenβ size of the content cache, and it's0if caching is disabled (so zero means no caching, iykyk)
π DESCRIPTION π
okay so here's the tea β the first three members (id, fname, fsize) are cached on all read/dir requests. literally all of them. no skips. π―
but content? that's different. content is only cached under some preconditions, so not every time. the way that uncached content is signalled is by a negative value of ofs β so if ofs is negative, that's your sign that the content isn't cached. periodt. π
π SEE ALSO π
- Kernel file
./drivers/s390/char/hmcdrv_cache.cβ the main character file fr fr hmcdrv_cache_get(9)hmcdrv_cache_do(9)hmcdrv_cache_cmd(9)hmcdrv_cache_startup(9)hmcdrv_cache_shutdown(9)
alright bestie, that's the whole struct and all its members, no details left behind, we ate that up. π the source is ./drivers/s390/char, the date is October 2026, and the version is struct hmcdrv_cache_entry(9) β catch you on the next manpage, mwah ππ
π¦ 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