munmap return value

From: Udo A. Steinberg (
Date: Tue Jan 01 2002 - 12:35:48 EST

Hi all,

My manpage for munmap(2) says:
On success, munmap returns 0, on failure -1, and errno is set (probably to EINVAL).

In reality munmap always returns 0, except for when the address is
not page-aligned (-EINVAL) or if allocation of kernel structures
fails (-ENOMEM).

Shouldn't munmap return -EINVAL also if there is nothing mapped
at the specified address?

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jan 07 2002 - 21:00:15 EST