scsw_cmd_is_valid_stctl(9)
π scsw_cmd_is_valid_stctl β check stctl field validity
okay so real talk bestie, we're deep in the Kernel API Manual today and this one is scsw_cmd_is_valid_stctl(9) β yes the name is a mouthful, no you cannot abbreviate it, we do not do that here π«Ά
β¨ NAME β¨
scsw_cmd_is_valid_stctl β bestie, this is the little guy that checks whether the stctl field is valid π
πΈ SYNOPSIS πΈ
int scsw_cmd_is_valid_stctl (union scsw *scsw );
that's it. that's the whole vibe. one function, one pointer, zero drama β¨
π ARGUMENTS π
scswβ a pointer to anscsw, literally just a pointer to scsw, that's the whole argument, that's her π
π¦ DESCRIPTION π¦
okay so here's the tea β β this function returns non-zero if the stctl field of the specified command mode scsw is valid, and zero otherwise. that's it. that's the whole function. it's giving very much a yes/no girlie and honestly? iconic π
so like, non-zero = valid β
, zero = not valid β. no cap, that's the entire contract. don't overthink her, she's doing her job π§
π SEE ALSO π
bestie there are SO many of these, and I mean SO many, so buckle up β this is the whole family reunion and everyone showed up π
first up, the kernel file where all of this lives:
./arch/s390/include/asm/scsw.h
and now, in order, the entire guest list ποΈ
struct cmd_scsw(9)struct tm_scsw(9)struct eadm_scsw(9)union scsw(9)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)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_dstat(9)scsw_cmd_is_valid_cstat(9)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)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)scsw_cmd_is_solicited(9)scsw_tm_is_solicited(9)scsw_is_solicited(9)
like I said. everyone. the whole friend group, the whole extended family, the whole group chat π«Ά iykyk π
and that's the page bestie, written from the ./arch/s390/include/asm of it all, dated October 2026 β go read the source, slay your kernel work, and remember: non-zero means valid, zero means nope, 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