scsw_tm_is_valid_x(9)
πΈ scsw_tm_is_valid_x(9) πΈ
okay so real talk, we are deep in the Kernel API Manual today bestie, and this one is a tiny little function with a very specific job. no notes, she's focused π
β¨ NAME β¨
scsw_tm_is_valid_x β check x field validity
the whole personality is in that one line ngl π
π¦ SYNOPSIS π¦
int scsw_tm_is_valid_x (union scsw *scsw );
she takes one pointer and hands you back an int. that's it. that's the whole vibe π
π ARGUMENTS π
scswβ pointer to scsw. literally just a pointer to thescsw. that's the tea π«
π DESCRIPTION π
so here's the deal: this function returns non-zero if the x field of the specified transport mode scsw is valid, and zero otherwise. that's it bestie, no plot twists, no hidden lore β¨
okay but fr fr, note the specifics, because they matter:
- it's checking the x field (not the other fields, not your vibe, not your feelings)
- it's checking it on the transport mode scsw specifically
- non-zero = valid, zero = not valid
lowkey iconic how much information lives in one sentence π
π SEE ALSO π
okay this is the part where she name-drops literally everyone in the friend group, so buckle up π§
- the kernel file herself:
./arch/s390/include/asm/scsw.h - the structs:
struct cmd_scsw(9),struct tm_scsw(9),struct eadm_scsw(9),union scsw(9) - the field readers:
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
cmdvalidity crew: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
tmvalidity crew (our girl's home team π«Ά):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_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_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) - the solicited trio at the end:
scsw_cmd_is_solicited(9),scsw_tm_is_solicited(9),scsw_is_solicited(9)
like I said. everyone showed up. the group chat is popping ππ
ok that's the whole page bestie, go check the x field and slay π
and that's a wrap, mwah π β source lives at ./arch/s390/include/asm, dated October 2026, and the page answers to the name scsw_tm_is_valid_x(9) πβ¨
π¦ 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