getpagesizes.3   getpagesizes.3 
skipping to change at line 23 skipping to change at line 23
ported page sizes or the sizes themselves. If pagesizes is NULL and ported page sizes or the sizes themselves. If pagesizes is NULL and
n_elem is 0, then the number of pages the system supports is return ed. n_elem is 0, then the number of pages the system supports is return ed.
Otherwise, pagesizes is filled with at most n_elem page sizes. Otherwise, pagesizes is filled with at most n_elem page sizes.
RETURN VALUE RETURN VALUE
On success, either the number of page sizes supported by the system or On success, either the number of page sizes supported by the system or
the number of page sizes stored in pagesizes is returned. On failu re, the number of page sizes stored in pagesizes is returned. On failu re,
-1 is returned and errno is set appropriately. -1 is returned and errno is set appropriately.
ERRORS ERRORS
ERRNO n_elem is less than zero or n_elem is greater than zero and EINVAL n_elem is less than zero or n_elem is greater than zero and
pagesizes is NULL. pagesizes is NULL.
Also see opendir(3) for other possible values for errno. This er ror Also see opendir(3) for other possible values for errno. This er ror
occurs when the sysfs directory exists but cannot be opened. occurs when the sysfs directory exists but cannot be opened.
NOTES NOTES
This call will return all page sizes as reported by the kernel. Not This call will return all page sizes as reported by the kernel. Not
all of these sizes may be usable by the programmer since mount poi nts all of these sizes may be usable by the programmer since mount poi nts
may not be available for the huge page sizes. To test whether a s ize may not be available for the huge page sizes. To test whether a s ize
will be usable by libhugetlbfs, hugetlbfs_find_path_for_size() can be will be usable by libhugetlbfs, hugetlbfs_find_path_for_size() can be
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/