See my pull request https://github.com/seL4/seL4_libs/pull/19 why this would be a useful. Is there a ways that parts of it could be made available in the seL4 API headers?