I am currently writing a Linux kernel module. I am aware that in case of userspace programs, uninitialized global variables (exported to other modules using EXPORT_SYMBOL
) are stored in BSS segment and initialized ones in Data Segment of userspace memory. But how are they store in case of kernel code??Are the function calls also included in Stack, in case of kernel code?
Thanks in advance for any help.