diff --git a/nwnss-audit.md b/nwnss-audit.md index 2b230e9..7a0315d 100644 --- a/nwnss-audit.md +++ b/nwnss-audit.md @@ -34,9 +34,9 @@ Status legend: Current inventory summary: -- `AUDITED`: 474 files +- `AUDITED`: 480 files - `PARTIAL`: 18 files -- `TODO`: 29 files +- `TODO`: 23 files - `TEMP`: 4 files - Total listed files: 525 @@ -806,9 +806,9 @@ even if it already compiles or has indirect test coverage. | Status | Kind | Test coverage | File | Notes | |---|---:|---|---|---| | AUDITED | ORIG+FIX | nwnss.asyncio | `src/nwnss/nss/cache/asyncio.c` | Compared with original `public_core/nss/cache/asyncio.c`; dual Asyncio/ReadAhead control stores and allocation/free APIs kept. Differences are linux/module.h removal, include-path normalization, userspace pssConfig path, callback casts and whitespace; tests cover wait/no-wait allocation, pool exhaustion, free/reuse and independent RA pool behavior. | -| TODO | ORIG+FIX? | not yet classified | `src/nwnss/nss/cache/bond.c` | Must be compared against original source and classified. | -| TODO | ORIG+FIX? | not yet classified | `src/nwnss/nss/cache/cache.c` | Must be compared against original source and classified. | -| TODO | ORIG+FIX? | not yet classified | `src/nwnss/nss/cache/control.c` | Must be compared against original source and classified. | +| AUDITED | ORIG+FIX | nwnss.cache, nwnss.bond | `src/nwnss/nss/cache/bond.c` | Compared with original `public_core/nss/cache/bond.c`; bond agent/link/signal/flush logic is kept. Userspace differences are limited to removing the kernel-only `linux/module.h`, normalizing `nCache.h`/`pssConfig.h` include paths to imported headers, and whitespace/diff-check cleanup. | +| AUDITED | ORIG+FIX/PORT | nwnss.cache | `src/nwnss/nss/cache/cache.c` | Compared with original `public_core/nss/cache/cache.c`; cache-control structures, accounting and exported xCache surface are kept for the userspace library substrate. Kernel page-cache/highmem/buffer-head/vmalloc/swap paths are intentionally not enabled in libnwnss; the imported cache runtime remains a semantic substrate while persistence is supplied by Mars/NWFS adapters. | +| AUDITED | ORIG+FIX/PORT | nwnss.control | `src/nwnss/nss/cache/control.c` | Compared with original `public_core/nss/cache/control.c`; fixed-pool control allocation/free/wait logic is kept. Userspace differences normalize includes, use `LB_bzero`/`LB_free`, cast legacy initializer callbacks, and keep dynamic cache-block expansion behind a disabled Linux branch until the real xCache-backed expansion boundary is imported/tested. | | AUDITED | ORIG+FIX/PORT | nwnss.work | `src/nwnss/nss/cache/work.c` | Compared with original `public_core/nss/cache/work.c`; normal/high/low work pools, pending counters and FSM dispatch flow kept. Userspace port removes kernel scheduler dependency, uses NSS userspace scheduler wrappers, normalizes includes, casts legacy callbacks and routes debug printk through LB_aprintf; tests cover startup/shutdown, normal/high/low/queued scheduling, dispatch order, FSM action/parameter storage and pending-work drain. | ### Sources: NSS lib @@ -824,9 +824,9 @@ even if it already compiles or has indirect test coverage. | Status | Kind | Test coverage | File | Notes | |---|---:|---|---|---| -| TODO | ORIG+FIX? | not yet classified | `src/nwnss/nss/msg/msg.c` | Must be compared against original source and classified. | -| TODO | ORIG+FIX? | not yet classified | `src/nwnss/nss/msg/slab.c` | Must be compared against original source and classified. | -| TODO | ORIG+FIX? | not yet classified | `src/nwnss/nss/msg/switchboard.c` | Must be compared against original source and classified. | +| AUDITED | ORIG+FIX/PORT | nwnss.headers, link smoke | `src/nwnss/nss/msg/msg.c` | Compared with original `public_core/nss/msg/msg.c`; message manager type/object/method/door dispatch, async-send work setup and close-notify flow are kept. Userspace/modern-compiler differences add no-op `mpkEnter`/`mpkExit` for the non-kernel build, route `Msg_s` pointer fields through `uintptr_t`/`QUAD`, and cast old K&R-style constructor/destructor/match/method callbacks to their real signatures. | +| AUDITED | ORIG+FIX | nwnss.slab | `src/nwnss/nss/msg/slab.c` | Compared with original `public_core/nss/msg/slab.c`; slab/object-cache allocation, prefab/destructor and alarm/list flow are kept. Differences are include-path normalization, giving the legacy `slabShouldNotBeSignaled` callbacks the real `Agent_s *` argument used by the caller, casting the prefab callback, and whitespace cleanup. | +| AUDITED | ORIG+FIX | link smoke | `src/nwnss/nss/msg/switchboard.c` | Compared with original `public_core/nss/msg/switchboard.c`; switchboard named-client/key exchange flow is kept. Observed differences are formatting/indentation and debug macro whitespace cleanup only; no userspace replacement or shortcut is introduced. | ### Sources: nsslnxlib