#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:53+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man2/alloc_hugepages.2:25 #, no-wrap msgid "ALLOC_HUGEPAGES" msgstr "" #. type: TH #: man-pages/man2/alloc_hugepages.2:25 #, no-wrap msgid "2007-05-31" msgstr "" #. type: TH #: man-pages/man2/alloc_hugepages.2:25 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man2/alloc_hugepages.2:25 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man2/alloc_hugepages.2:26 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:28 msgid "alloc_hugepages, free_hugepages - allocate or free huge pages" msgstr "" #. type: SH #: man-pages/man2/alloc_hugepages.2:28 #, no-wrap msgid "SYNOPSIS" msgstr "" #. asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr, #. unsigned long len, int prot, int flag); #. type: Plain text #: man-pages/man2/alloc_hugepages.2:34 #, no-wrap msgid "" "BIB<, void *>IB<, size_t >IB<,>\n" "B< int >IB<, int >IB<);>\n" msgstr "" #. asmlinkage int sys_free_hugepages(unsigned long addr); #. type: Plain text #: man-pages/man2/alloc_hugepages.2:37 #, no-wrap msgid "BIB<);>\n" msgstr "" #. type: SH #: man-pages/man2/alloc_hugepages.2:38 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:49 msgid "" "The system calls B() and B() were " "introduced in Linux 2.5.36 and removed again in 2.5.54. They existed only " "on i386 and ia64 (when built with B). In Linux 2.4.20, " "the syscall numbers exist, but the calls fail with the error B." msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:57 msgid "" "On i386 the memory management hardware knows about ordinary pages (4 KiB) " "and huge pages (2 or 4 MiB). Similarly ia64 knows about huge pages of " "several sizes. These system calls serve to map huge pages into the " "process's memory or to free them again. Huge pages are locked into memory, " "and are not swapped." msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:66 msgid "" "The I argument is an identifier. When zero the pages are private, and " "not inherited by children. When positive the pages are shared with other " "applications using the same I, and inherited by child processes." msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:81 msgid "" "The I argument of B() tells which page is being freed:" " it was the return value of a call to B(). (The memory is " "first actually freed when all users have released it.) The I argument " "of B() is a hint, that the kernel may or may not follow. " "Addresses must be properly aligned." msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:86 msgid "" "The I argument is the length of the required segment. It must be a " "multiple of the huge page size." msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:94 msgid "" "The I argument specifies the memory protection of the segment. It is " "one of B, B, B." msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:109 msgid "" "The I argument is ignored, unless I is positive. In that case, " "if I is B, then a new huge page segment is created when " "none with the given key existed. If this flag is not set, then B is " "returned when no segment with the given key exists." msgstr "" #. type: SH #: man-pages/man2/alloc_hugepages.2:109 #, no-wrap msgid "RETURN VALUE" msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:118 msgid "" "On success, B() returns the allocated virtual address, and " "B() returns zero. On error, -1 is returned, and I " "is set appropriately." msgstr "" #. type: SH #: man-pages/man2/alloc_hugepages.2:118 #, no-wrap msgid "ERRORS" msgstr "" #. type: TP #: man-pages/man2/alloc_hugepages.2:119 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:122 msgid "The system call is not supported on this kernel." msgstr "" #. type: SH #: man-pages/man2/alloc_hugepages.2:122 #, no-wrap msgid "FILES" msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:126 msgid "" "I Number of configured hugetlb pages. This can " "be read and written." msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:130 msgid "" "I Gives info on the number of configured hugetlb pages and on " "their size in the three variables HugePages_Total, HugePages_Free, " "Hugepagesize." msgstr "" #. type: SH #: man-pages/man2/alloc_hugepages.2:130 #, no-wrap msgid "CONFORMING TO" msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:133 msgid "" "These calls are specific to Linux on Intel processors, and should not be " "used in programs intended to be portable." msgstr "" #. type: SH #: man-pages/man2/alloc_hugepages.2:133 #, no-wrap msgid "NOTES" msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:141 msgid "" "These system calls are gone; they existed only in Linux 2.5.36 through to 2." "5.54. Now the hugetlbfs filesystem can be used instead. Memory backed by " "huge pages (if the CPU supports them) is obtained by using B(2) to " "map files in this virtual filesystem." msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:145 msgid "" "The maximal number of huge pages can be specified using the B " "boot parameter." msgstr "" #. requires CONFIG_HUGETLB_PAGE (under "Processor type and features") #. and CONFIG_HUGETLBFS (under "Filesystems"). #. mount -t hugetlbfs hugetlbfs /huge #. SHM_HUGETLB #. type: SH #: man-pages/man2/alloc_hugepages.2:150 #, no-wrap msgid "COLOPHON" msgstr "" #. type: Plain text #: man-pages/man2/alloc_hugepages.2:158 msgid "" "This page is part of release 3.70 of the Linux I project. A " "description of the project, information about reporting bugs, and the latest " "version of this page, can be found at \\%http://www.kernel.org/doc/man-pages/" "." msgstr ""