scsw_is_valid_cstat(9)
π scsw_is_valid_cstat π
okay so this is a page from the Kernel API Manual, bestie, and it's literally about one tiny little function that goes by scsw_is_valid_cstat(9) π she's small but she matters, i promise.
β¨ NAME β¨
scsw_is_valid_cstat β check cstat field validity π
πΈ SYNOPSIS πΈ
int scsw_is_valid_cstat (union scsw *scsw );
that's it. that's the whole vibe. one function, one pointer, zero drama β¨
π¦ ARGUMENTS π¦
scswβ pointer to scsw π«Ά like, that's the whole thing, she just wants a pointer to an scsw and she'll take it from there.
π DESCRIPTION π
okay so here's the tea β β this function returns non-zero if the cstat field of the scsw you handed it is valid. and the slay part? it does not care whether it's a transport mode scsw or a command mode scsw. both are welcome here, no gatekeeping π
β¨
and if the field does not contain a valid value? she returns zero. that's it. that's the whole personality π
ngl this one's a simple queen β no hidden lore, no gotchas, just a yes/no vibe check on your cstat field π₯
π SEE ALSO π
the whole friend group, fr fr π«Ά β first up, the kernel file where all this lives:
./arch/s390/include/asm/scsw.h
and then the structs:
struct cmd_scsw(9)struct tm_scsw(9)struct eadm_scsw(9)union scsw(9)
the scsw family:
scsw_is_tm(9)scsw_key(9)scsw_eswf(9)scsw_cc(9)scsw_ectl(9)scsw_pno(9)scsw_fctl(9)scsw_actl(9)scsw_stctl(9)scsw_dstat(9)scsw_cstat(9)
the scsw_cmd_is_valid_* girlies:
scsw_cmd_is_valid_key(9)scsw_cmd_is_valid_sctl(9)scsw_cmd_is_valid_eswf(9)scsw_cmd_is_valid_cc(9)scsw_cmd_is_valid_fmt(9)scsw_cmd_is_valid_pfch(9)scsw_cmd_is_valid_isic(9)scsw_cmd_is_valid_alcc(9)scsw_cmd_is_valid_ssi(9)scsw_cmd_is_valid_zcc(9)scsw_cmd_is_valid_ectl(9)scsw_cmd_is_valid_pno(9)scsw_cmd_is_valid_fctl(9)scsw_cmd_is_valid_actl(9)scsw_cmd_is_valid_stctl(9)scsw_cmd_is_valid_dstat(9)scsw_cmd_is_valid_cstat(9)
the scsw_tm_is_valid_* girlies:
scsw_tm_is_valid_key(9)scsw_tm_is_valid_eswf(9)scsw_tm_is_valid_cc(9)scsw_tm_is_valid_fmt(9)scsw_tm_is_valid_x(9)scsw_tm_is_valid_q(9)scsw_tm_is_valid_ectl(9)scsw_tm_is_valid_pno(9)scsw_tm_is_valid_fctl(9)scsw_tm_is_valid_actl(9)scsw_tm_is_valid_stctl(9)scsw_tm_is_valid_dstat(9)scsw_tm_is_valid_cstat(9)scsw_tm_is_valid_fcxs(9)scsw_tm_is_valid_schxs(9)
the plain scsw_is_valid_* crew:
scsw_is_valid_actl(9)scsw_is_valid_cc(9)scsw_is_valid_dstat(9)scsw_is_valid_ectl(9)scsw_is_valid_eswf(9)scsw_is_valid_fctl(9)scsw_is_valid_key(9)scsw_is_valid_pno(9)scsw_is_valid_stctl(9)
and the solicited squad at the end:
and that's the whole page, bestie π§π mwah π
π cute little sign-off: this whole thing lives in./arch/s390/include/asm, and the version/date stamp on it is October 2026, and yeah β the page itself is literallyscsw_is_valid_cstat(9), 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