scsw_cmd_is_valid_ectl(9)
π scsw_cmd_is_valid_ectl β bestie edition β¨
okay so this is a page from the Kernel API Manual (the scsw_cmd_is_valid_ectl(9) one, yes the manual name goes right there, slay) and it's honestly a little snack of a function. tiny. iconic. does exactly one thing. we love a low-maintenance queen π
πΈ NAME πΈ
scsw_cmd_is_valid_ectl β literally just checking if the ectl field is valid, no cap
β¨ SYNOPSIS β¨
int scsw_cmd_is_valid_ectl (union scsw *scsw );
π¦ ARGUMENTS π¦
scswβ a pointer toscsw, bestie. that's it. that's the whole argument. π«Ά
π DESCRIPTION π
okay so here's the vibe: it returns non-zero if the ectl field of the specified command mode scsw is valid, and zero otherwise. that's the entire personality. non-zero = valid, zero = not valid, periodt. no side quests, no plot twists, just a vibe check on one single field π₯
like it's giving "small function, big responsibility" and honestly? we're obsessed.
ngl this is the kind of function you call before you go touching ectl, because trusting an unvalidated field is not the main character energy you want in your kernel code π
π SEE ALSO π
the full friend group, in exactly the order they were introduced at the party π β 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_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_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)
and that's the whole page, bestie π§ coming at you from ./arch/s390/include/asm, dated October 2026 β mwah, take care, drink water, validate your 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