-2

How is kernel space sections? and how do they locate?

For example, user space has some sections (.data, .text, stack ...).

I want to know kernel space's memory layout image.

Please tell me it or related site.

halfer
  • 19,824
  • 17
  • 99
  • 186
DARUMA
  • 3
  • 3
  • The question about "Kernel space memory layout" in whole would be **too broad** for Stack Overflow - you are better find some books or other resources on this topic. If you don't understand some specific thing about this topic - ask about this *specific* thing. Note, that asking for *external resource* (book, site, etc.) on Stack Overflow is **off-topic**. – Tsyvarev Sep 10 '18 at 08:30

1 Answers1

0

The user space is not laid out like this:

For example, user space has some sections(.data, .text, stack ...).

Sections only exist in the executable file. The user space is just memory. There is no "stack" section. The stack is just read/write memory that happens to be used as a stack. A process can have multiple user-mode stacks when there is threading.

Unfortunately dreadful operating system books persist in confusing people this way.

The kernel is also just memory. It can be organized however the operating system wants it to be.

user3344003
  • 20,574
  • 3
  • 26
  • 62
  • I understand it. I fix question. If kernel is ELF format, what sections it has? (I wanna know about how kernel stack, page table are located.) – DARUMA Sep 09 '18 at 23:42