* Traverses every zone in the system and calls a callback * * Arguments: * zfunc A pointer to a function which accepts a zone * as an argument. * * Returns: * Nothing */
| 2871 | * Nothing |
| 2872 | */ |
| 2873 | static void |
| 2874 | zone_foreach(void (*zfunc)(uma_zone_t, void *arg), void *arg) |
| 2875 | { |
| 2876 | |
| 2877 | rw_rlock(&uma_rwlock); |
| 2878 | zone_foreach_unlocked(zfunc, arg); |
| 2879 | rw_runlock(&uma_rwlock); |
| 2880 | } |
| 2881 | |
| 2882 | /* |
| 2883 | * Initialize the kernel memory allocator. This is done after pages can be |
no test coverage detected