read_cnt_show(9)
π read_cnt_show β kernel API manual, bestie edition π
okay so this is read_cnt_show(9) from the Kernel API Manual, and honestly? she's short, she's sweet, she's giving "one job and she does it." β¨
β¨ NAME β¨
read_cnt_show β return read count, like, the count of reads made from the tape drive πΌπ
β¨ SYNOPSIS β¨
ssize_t read_cnt_show (struct device *dev , struct device_attribute
*attr , char *buf );
no cap, that's the whole signature. ssize_t return type, three args, we move. π«Ά
β¨ ARGUMENTS β¨
devβ astruct device. literally the device, that's her πattrβ the attribute structure. the β¨vibesβ¨ metadata of it allbufβ the buffer where you return the formatted data in. put the pretty formatted output here bestie π
π SEE ALSO π
Go check out the kernel file ./drivers/scsi/st.c, plus the whole friend group of 9-section functions that live in the same neighborhood β they're all linked, iykyk:
scsi_tape_release(9)position_lost_in_reset_show(9)read_byte_cnt_show(9)read_ns_show(9)write_cnt_show(9)write_byte_cnt_show(9)write_ns_show(9)in_flight_show(9)io_ns_show(9)other_cnt_show(9)resid_cnt_show(9)
okay that's the whole page, she ate and left no crumbs πβ¨
source: ./drivers/scsi β dated October 2026, main character energy only πΈπ
π¦ mwah, go read some tape counters π¦
π¦ 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