Page size shouldn't be zero, should be alloc_sz.

The 0 above is for the `flags` parameter. Page size is set to alloc_sz.

```
void *
eal_get_virtual_area(void *requested_addr, size_t *size,
                size_t page_sz, int flags, int mmap_flags);
```

I believe it's okay. Correct me if I'm wrong.

Apologies, you're right. I misread the code.


--
Thanks,
Anatoly

Reply via email to