MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sys_brk

Function sys_brk

components/lwp/lwp_syscall.c:1964–1967  ·  view source on GitHub ↗

* @brief Adjusts the end of the data segment (heap) of the calling process. * * This system call changes the location of the program break, which defines the end of * the data segment (heap) of the calling process. It provides a unified interface for adjusting * the heap size. The `addr` parameter specifies the new location for the program break. * * @param addr The new program break locatio

Source from the content-addressed store, hash-verified

1962 * @see malloc(), free(), sys_sbrk()
1963 */
1964rt_base_t sys_brk(void *addr)
1965{
1966 return lwp_brk(addr);
1967}
1968
1969/**
1970 * @brief Maps a file or device into memory.

Callers

nothing calls this directly

Calls 1

lwp_brkFunction · 0.85

Tested by

no test coverage detected