The NT_* note type names are common between different operating systems, with different values. Instead of naming them NT_FREEBSD_*, just put them in a FREEBSD namespace.
Submitting for code review primarily for comment on coding style, since we don't have many examples to crib from already.