limited size for variable in kernel stack?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



hello,

I am writing a kernel module, and in one function i have a small array
of char. I declare it like this:

char arr[PAGE_SIZE];

But knowing that the kernel stack size is rather limited, I am afraid
that the above array wastes too much stack memory. So I would like to
know what is the recommended size for a variable on the stack? Should
I allocate the above array using kmalloc() instead of putting it on
stack?

Thank you a lot,
AQ

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux