code wiki / (root) / nx_toner_store.nx

nx_toner_store.nx

buildroot/runtime/nx_toner_store.nx

1460 B40 linesdepth 2pulls 2 transitivereach 4 importersview sourcekind librarytopic toner
docsdependenciesstructsconstsfunctions

about

nx_toner_store.nx -- tiny persistent store for the real-toner ledger (survives across runs, on /mnt/c). 16-byte little-endian file: [0..7]=yield_pages, [8..15]=consumed_ppm. Sovereign sys calls only; it writes a small DATA file (not firmware) -> never-brick (#26). license_tier: ORIGINAL genealogy_id: project-printer-management-ipp-sclass-2026-06-20

dependencies 1 imports · 4 importers

nx_syscalls.nx nx_toner_store.nx nx_doc_print.nx nx_img_print.nx nx_printers_page.nx nx_toner_track.nx

imports: nx_syscalls.nx

imported by: nx_doc_print.nxnx_img_print.nxnx_printers_page.nxnx_toner_track.nx

structs

none

consts

none

functions

8func nx_tstore_rd_le64(b: *u8, off: i64) -> i64
called by 1: nx_tstore_load
14func nx_tstore_wr_le64(b: *u8, off: i64, v: i64) -> i64
called by 1: nx_tstore_save
21func nx_tstore_load(path: *u8, out_yield: *i64, out_consumed: *i64) -> i64
31func nx_tstore_save(path: *u8, yield_pages: i64, consumed: i64) -> i64