GitHub - puavo-org/lsiommu

Contribute to puavo-org/lsiommu development by creating an account on GitHub.

GitHub
derived radix sort from https://www.cubic.org/docs/radix.htm (because it is good fit for the purpose)
Radix Sort Tutorial

... or actually totally unneeded given low amount of groups but it can be ;-)
i reworked PCI address representation which will allow to use radix sort for both cases:

https://github.com/puavo-org/lsiommu/commit/572ea9d86285f48afd0249dc32cea704e2d5512b

i guess it makes overall sense
Fix parse_hex_digit() · puavo-org/lsiommu@23c7740

572ea9d86285 ("Pack all PCI addresses to integers") left the parse to a broken state. parse_hex_digit() has invalid check for the success condition. Fix this by using 0x10000000 as a flag...

GitHub
@jarkko Hey, so is `--help` supposed to do anything yet? Or `argtable2` in general?
@kidney not whole a lot
@kidney actually i somehow manage forgot to implement that. i'll add it back with sysfs support :-) thanks for notifying
@kidney with I added it together with sysfs discovery:

❯ build/lsiommu -h
Usage: build/lsiommu [-h]
Lists IOMMU groups and their associated PCI devices.
This version was compiled for sysfs discovery.

-h, --help Print help and exit