📄 readme
字号:
larg_mem.o:=============Example of allocating large amounts of memory at boot time - to use this you must edit the larg_mem.c program and adjust memstart memend to the valuesyou pass to the kernel in the mem= line and the physical memory installedthe defaults in the example here assumes that you passed mem=96Mat the kernel boot prompt and have 128MB installed, giving you 32MB that you can use for RTLinux.On a 128MB box with mem=96 cat /proc/meminfo should show something like total: used: free: shared: buffers: cached:Mem: 97411072 90025984 7385088 0 10190848 58822656All this example will do (whith the default settings) is fill up these 32MB with the index of the (unsigned long) large location . Module options: memstart=BYTE_OFFSET physical address at which reserved memory starts memlength=BYTES length of memory block to reserve period=MICROSECONDS period of the main looplarg_stack.o:============= Example of setting up a large stack (default is 20k) by kmalloc'ing a larger chunk and assigning it to the thread via the attribute structure.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -