scsw_cmd_is_valid_zcc(9)
π scsw_cmd_is_valid_zcc(9) β¨
okay so this is a page from the Kernel API Manual, and bestie, it's a short one but it's lowkey important β it's all about checking whether one specific little field is even worth looking at. Let's get into it π«Ά
πΈ NAME πΈ
scsw_cmd_is_valid_zcc β check zcc field validity
Like, it does exactly what it says on the tin. No cap. β
π¦ SYNOPSIS π¦
int scsw_cmd_is_valid_zcc (union scsw *scsw );
That's it. That's the whole vibe. One function, one argument, one int coming back at you π«
π ARGUMENTS π
scswβ pointer to scsw. literally just a pointer to anscsw. that's the whole job bestie π«‘
β DESCRIPTION β
okay so here's the tea β β this function returns non-zero if the zcc field of the specified command mode scsw is valid, and zero otherwise.
That's it!! That's the entire description!! Sometimes the little functions are the icons and we just have to respect that π
So like β vibe check first, then read the field. Never the other way around. iykyk π
π SEE ALSO π
okay this is where it gets extensive β the SEE ALSO section on this one is giving main character energy, it's got the whole family tree π³β¨
the header file itself:
Kernel file ./arch/s390/include/asm/scsw.h
the structs & the union:
struct cmd_scsw(9)struct tm_scsw(9)struct eadm_scsw(9)union scsw(9)
the general scsw accessors:
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 command-mode validity 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_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 tm-mode validity 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 generic is_valid crowd:
scsw_is_valid_actl(9)scsw_is_valid_cc(9)scsw_is_valid_cstat(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, last but never least:
π that's a LOT of cross-references for a function whose whole personality is "return non-zero if valid, zero otherwise" β but honestly? queen behavior. she knows her neighbors.
π§ cute lil sign-off π§
this page lives in ./arch/s390/include/asm, it's part of the Kernel API Manual, and it was dated October 2026 β so yeah, future icon behavior only π
go check your zcc field bestie, and stay valid πβ¨π
π¦ 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