nx_doc_xref.nx
buildroot/runtime/nx_doc_xref.nx
about
nx_doc_xref.nx -- cross-reference verification primitives.
Companion to nx_doc_inref. Detects BROKEN [[X]] references where
the link target doesn't correspond to a real doc. Substrate-
honest doc-graph integrity check.
Composes:
nx_string_ops (string scanning helpers)
nx_doc_inref (sibling primitive; same Zettelkasten [[name]]
convention)
**Quadrant:** REFERENCE (Diátaxis)
**Topic Type:** REFERENCE (DITA)
**Status:** DRAFT
**Trust State:** WRITTEN_UNTESTED
**Competitive State:** UNCLASSIFIED
dependencies 3 imports · 4 importers
imports: nx_syscalls.nxnx_string_ops.nxnx_dir.nx
imported by: nx_doc_xref_dual_audit_test.nxnx_doc_xref_real_audit_test.nxnx_doc_xref_test.nxnx_librarian.nx
structs
| 36 | struct NxLinkScanResult |
| 187 | struct NxDocXrefCounts |
consts
| 21 | const K_MAGIC_2048: i64 = 2048 |
| 22 | const K_MAGIC_262144: i64 = 262144 |
| 23 | const K_MAGIC_65536: i64 = 65536 |
| 24 | const K_MAGIC_1024: i64 = 1024 |
functions
| 41 | func nx_doc_extract_link_target( |
| 146 | func nx_doc_link_target_exists( |
| 194 | func nx_doc_xref_counts_init(c: *NxDocXrefCounts) |
| 205 | func _docxref_write_broken( |
| 218 | func _docxref_append_name( |
| 244 | func nx_doc_xref_walk_dir( called by 1: main calls 11: sys_mmapnx_dir_listnx_dir_row_atnx_str_ends_with_docxref_append_namesys_openat_rd+5 |
| 357 | func nx_doc_xref_report_stdout(c: *NxDocXrefCounts) |
| 397 | func nx_doc_xref_build_names_blob( |
| 439 | func nx_doc_link_target_exists_dual( |
| 456 | func nx_doc_xref_walk_dir_dual( called by 2: mainmain calls 11: sys_mmapnx_dir_listnx_dir_row_atnx_str_ends_with_docxref_append_namesys_openat_rd+5 |