Dovetail/Xenomai 3: kernel config CONFIG_XENO_OPT_REGISTRY_NRSLOTS
Hi all,
What is the maximum value of the kernel option CONFIG_XENO_OPT_REGISTRY_NRSLOTS?
When I set more than 30,000, Linux failed to start.
Quoted 6 lines · YinJie LI
Hi all,
What is the maximum value of the kernel option
CONFIG_XENO_OPT_REGISTRY_NRSLOTS?When I set more than 30,000, Linux failed to start.
The value is used for an allocation with kmalloc().
registry_obj_slots = kmalloc(CONFIG_XENO_OPT_REGISTRY_NRSLOTS *
sizeof(struct xnobject), GFP_KERNEL);
if (registry_obj_slots == NULL)
return -ENOMEM;kmalloc() gives you at most a few pages. Depends on the memory fragmentation of the system.
Signature · 2 lines
Thanks, //richard