* Allocates a number of pages from the system * * Arguments: * bytes The number of bytes requested * wait Shall we wait? * * Returns: * A pointer to the alloced memory or possibly * NULL if M_NOWAIT is set. */
| 1724 | * NULL if M_NOWAIT is set. |
| 1725 | */ |
| 1726 | static void * |
| 1727 | page_alloc(uma_zone_t zone, vm_size_t bytes, int domain, uint8_t *pflag, |
| 1728 | int wait) |
| 1729 | { |
| 1730 | void *p; /* Returned page */ |
| 1731 | |
| 1732 | *pflag = UMA_SLAB_KERNEL; |
| 1733 | p = (void *)kmem_malloc_domainset(DOMAINSET_FIXED(domain), bytes, wait); |
| 1734 | |
| 1735 | return (p); |
| 1736 | } |
| 1737 | |
| 1738 | #ifndef FSTACK |
| 1739 | static void * |
no test coverage detected