You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
429 B

// SPDX-License-Identifier: GPL-2.0-only
/* identifiers for device / performance-differentiated memory regions */
#include <linux/idr.h>
#include <linux/types.h>
#include <linux/memregion.h>
static DEFINE_IDA(memregion_ids);
int memregion_alloc(gfp_t gfp)
return ida_alloc(&memregion_ids, gfp);
void memregion_free(int id)
ida_free(&memregion_ids, id);