read_byte_cnt_show(9)
π read_byte_cnt_show(9) π
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little sysfs show function and honestly it's giving "small but crucial" energy. no cap.
πΈ NAME πΈ
read_byte_cnt_show β returns the read byte count. and here's the tea: tape drives can use blocks that are less than 512 bytes, so this gives you the raw byte count of the data read from the tape drive. literally the actual bytes, not the block math. π
β¨ SYNOPSIS β¨
ssize_t read_byte_cnt_show (struct device *dev , struct device_attribute *attr , char *buf );
π¦ ARGUMENTS π¦
devβ astruct device. that's the device, bestie. πattrβ the attribute structure. yep, the attribute struct.bufβ the buffer where you put the formatted data you're returning. like, the output goes here, okay? π«Ά
π SEE ALSO π
kernel file ./drivers/scsi/st.c β go read it, iykyk π₯ β plus all these icons:
scsi_tape_release(9)position_lost_in_reset_show(9)read_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)
π reminder that this one's all about the raw byte count because tape blocks can be smaller than 512 bytes β don't go expecting block-rounded numbers, bestie.
and that's the whole vibe check, mwah π§π this page came from ./drivers/scsi, dated October 2026, and it's filed under read_byte_cnt_show(9) β 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