c
unsigned int index;
index = ida_alloc(&ida_index, GFP_KERNEL);
if (index == IDA_ALLOC_FAILED) {
    pr_warn("%s: failed to allocate index!\n", name);
    rc = -ENOMEM;
    goto err;
}
