scsw_is_valid_ectl(9)
π scsw_is_valid_ectl β a little vibe check for your ectl field
okay so this is a page from the Kernel API Manual, and honestly? it's a short one but it matters. bestie, we're checking whether a field is valid. that's the whole gig. no cap. π
β¨ NAME β¨
scsw_is_valid_ectl β check ectl field validity π
πΈ SYNOPSIS πΈ
int scsw_is_valid_ectl (union scsw *scsw );
that's it. one function, one argument, one int coming back at you. iconic. β
π¦ ARGUMENTS π¦
scswβ pointer toscsw. that's your union, that's who we're inspecting. hand it over and let the function do its little check π«Ά
π DESCRIPTION π
so here's the tea β β this function returns non-zero if the ectl field of the specified scsw is valid. and it does that regardless of whether it's a transport mode scsw or a command mode scsw. both vibes welcome, no gatekeeping π
and if the field does not contain a valid value? you get zero. that's the whole mood. no exceptions, no extra lore. periodt. π―
lowkey the simplest function on the block and she still ate π
π₯ SEE ALSO π₯
okay buckle up bestie, this list is long, but every single one of these is part of the squad and we do not leave anyone out π
- Kernel file
./arch/s390/include/asm/scsw.h 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_stctl(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_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)
and that's the whole page, bestie π§ no filler, all killer. this lil cutie lives at ./arch/s390/include/asm, and she was stamped October 2026 β remember the date, iykyk π
β¨
slay, go validate some fields π
π¦ 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