3 ms·
You might want to sort them by some other criteria. For example, the FreeBSD kernel's use of this construct embeds a well-defined priority[1], and the array is
by loeg 7y ago
You might want to sort them by some other criteria.
For example, the FreeBSD kernel's use of this construct embeds a well-defined priority[1], and the array is sorted by this priority value at boot time.[2]
[1]: https://github.com/freebsd/freebsd/blob/master/sys/sys/kernel.h#L76-L175 https://github.com/freebsd/freebsd/blob/master/sys/sys/kerne...
[2]: https://github.com/freebsd/freebsd/blob/master/sys/kern/init_main.c#L217-L265 https://github.com/freebsd/freebsd/blob/master/sys/kern/init...