Function kernel::grant::allow_ro

source ยท
pub(crate) fn allow_ro(
    process: &dyn Process,
    driver_num: usize,
    allow_num: usize,
    buffer: ReadOnlyProcessBuffer,
) -> Result<ReadOnlyProcessBuffer, (ReadOnlyProcessBuffer, ErrorCode)>
Expand description

Stores the specified read-only process buffer in the kernel managed grant region for this process and driver. The previous read-only process buffer stored at the same allow_num id is returned.