pub unsafe fn physalloc3(
    size: usize,
    flags: usize,
    min: &mut usize
) -> Result<usize>
Expand description

Allocate frames, linearly in physical memory, with an extra set of flags. If the flags contain PARTIAL_ALLOC, the min parameter specifies the number of frames that have to be allocated for this operation to succeed. The return value is the offset of the first frame, and min is overwritten with the number of frames actually allocated.

Refer to the simpler physalloc and the simpler library function physalloc2.

Errors

  • EPERM - uid != 0
  • ENOMEM - the system has run out of available memory
  • EINVAL - min = 0