The functions are only used by udevd (and relevant tests), hence it is not necessary to be in src/shared.