[PATCH 2/6] core: PA_PAGE_SIZE using sysconf() may return a negative number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2016-08-18 at 18:17 +0200, Peter Meerwald-Stadler wrote:
> instead of calling sysconf() directly, add function pa_page_size()
> which uses the guestimate 4096 in case sysconf(_SC_PAGE_SIZE) fails
> 
> using PA_ONCE to only evaluate sysconf() once
> 
> the name macro.h/.c is a bit unfortunate when adding functions

I'd prefer removing the PA_PAGE_SIZE macro and using pa_page_size()
directly. The function can be added to core-util.[ch].

-- 
Tanu


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux