mprotect(2)

DESCRIPTION

Validates a requested protection change for a mapped virtual range. Astia does not currently implement page-permission changes.

SYNOPSIS

long mprotect(void *addr, long length, uint32_t prot);

RETURN VALUE

  • Returns a negative errno.

ERRORS

  • -EINVAL
    • The address, length, or protection value is invalid.
  • -ENOSYS
    • Protection changes are not implemented.

NOTES

The syscall number is reserved in the public ABI; mappings retain their creation-time permissions.