【发布时间】:2021-03-20 13:23:53
【问题描述】:
我知道 malloc sbrk 是调用的系统调用,类似地,当我写入 malloed 内存(堆内存)时调用的系统调用是什么
int main
{
/* 10 byte of heap memory allocated */
char *ptr = malloc(5);
ptr[0] = 10; // **What is the system call invoked for
writing into this heap memory** ?????
}
【问题讨论】:
标签: c linux memory-management linux-kernel