Where could I find the definition of __vm_deallocate() called by __munmap()?

Florian Weimer fweimer@redhat.com
Sat Jul 31 17:51:29 GMT 2021


* ur bridge via Libc-help:

> I’m reading the malloc.c code, and find that when __munmap() is called
> to free a mmapped chunk, the control flow will fall into
> sysdeps/mach/munmap.c, where __vm_deallocate() will be
> called. However, I cannot find its definition. Where could it be?

This is Hurd code.  For Linux, __munmap is indeed a thin system call
wrapper.

Thanks,
Florian



More information about the Libc-help mailing list