Are there any memory restrictions on Linux Kernel Modules? -


Is there any restriction on the use of Linux kernel modules i.e. code segment size or global memory or any amount of memory? In 2.6.35, load_module () bails out if the module length exceeds / p>

    < Li> 64 MB:
  • Vmalloc () is used to allocate space for the module - it fails if you try to allocate more pages than is available in your physical memory (Which in turn may only be a problem for embedded low RAM thing)
  • In addition to this, kzalloc () (and in return, kmilok ()) Is used on the basis of allocation used (SLB, SOBB, SLUB), restrictions may also be there. SLAAB defines a KMALLOC_MAX_SIZE which defines the maximum number of bytes that you can allocate in a single call with a single call.

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -