[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH gnumach v1] Implement per task virtual memory limit
From: |
Diego Nieto Cid |
Subject: |
Re: [PATCH gnumach v1] Implement per task virtual memory limit |
Date: |
Tue, 24 Dec 2024 17:24:11 -0300 |
On Tue, Dec 24, 2024 at 02:11:07PM -0300, Diego Nieto Cid wrote:
>
> I've been expanding the comment in gnumach.defs:
>
> /*
> * Set a task virtual memory limit parameters
> *
> * HOST_PORT must be the privileged host control port
> * if the caller desires to increase the current max limit.
> *
> * On the other hand, if the max limit is being decreased, the
> * unprivileged host name (as returned by mach_host_self()) can
> * be provided.
> *
> * Returns:
> * - KERN_SUCESS when the size limit has been set
> * - KERN_INVALID_ARGUMENT in the following cases:
> * * current_limit > max_limit
> * * map is NULL
> * * attemt to increase max limi without providing
> * the privileged control host port.
> */
>
I've noted the typos 'KERN_SUCESS', 'attemt' and 'limi' here. *facepalm*