€•ô*Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ./translations/zh_CN/admin-guide/mm/cma_debugfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ./translations/zh_TW/admin-guide/mm/cma_debugfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ./translations/it_IT/admin-guide/mm/cma_debugfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ./translations/ja_JP/admin-guide/mm/cma_debugfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ./translations/ko_KR/admin-guide/mm/cma_debugfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ./translations/sp_SP/admin-guide/mm/cma_debugfs”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒCMA Debugfs Interface”h]”hŒCMA Debugfs Interface”…””}”(hh¨hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¦hh£hžhhŸŒH/var/lib/git/docbuild/linux/Documentation/admin-guide/mm/cma_debugfs.rst”h KubhŒ paragraph”“”)”}”(hŒ•The CMA debugfs interface is useful to retrieve basic information out of the different CMA areas and to test allocation/release in each of the areas.”h]”hŒ•The CMA debugfs interface is useful to retrieve basic information out of the different CMA areas and to test allocation/release in each of the areas.”…””}”(hh¹hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubh¸)”}”(hŒbEach CMA area represents a directory under /cma/, represented by its CMA name like below:”h]”hŒbEach CMA area represents a directory under /cma/, represented by its CMA name like below:”…””}”(hhÇhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubhŒ block_quote”“”)”}”(hŒ/cma/ ”h]”h¸)”}”(hŒ/cma/”h]”hŒ/cma/”…””}”(hhÛhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K hh×ubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhŸh¶h K hh£hžhubh¸)”}”(hŒFThe structure of the files created under that directory is as follows:”h]”hŒFThe structure of the files created under that directory is as follows:”…””}”(hhïhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K hh£hžhubhÖ)”}”(hXf- [RO] base_pfn: The base PFN (Page Frame Number) of the CMA area. This is the same as ranges/0/base_pfn. - [RO] count: Amount of memory in the CMA area. - [RO] order_per_bit: Order of pages represented by one bit. - [RO] bitmap: The bitmap of allocated pages in the area. This is the same as ranges/0/base_pfn. - [RO] ranges/N/base_pfn: The base PFN of contiguous range N in the CMA area. - [RO] ranges/N/bitmap: The bit map of allocated pages in range N in the CMA area. - [WO] alloc: Allocate N pages from that CMA area. For example:: echo 5 > /cma//alloc ”h]”hŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒl[RO] base_pfn: The base PFN (Page Frame Number) of the CMA area. This is the same as ranges/0/base_pfn.”h]”hŒdefinition_list”“”)”}”(hhh]”hŒdefinition_list_item”“”)”}”(hŒg[RO] base_pfn: The base PFN (Page Frame Number) of the CMA area. This is the same as ranges/0/base_pfn.”h]”(hŒterm”“”)”}”(hŒ@[RO] base_pfn: The base PFN (Page Frame Number) of the CMA area.”h]”hŒ@[RO] base_pfn: The base PFN (Page Frame Number) of the CMA area.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh¶h KhjubhŒ definition”“”)”}”(hhh]”h¸)”}”(hŒ&This is the same as ranges/0/base_pfn.”h]”hŒ&This is the same as ranges/0/base_pfn.”…””}”(hj,hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khj)ubah}”(h]”h ]”h"]”h$]”h&]”uh1j'hjubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh¶h Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)”}”(hŒ-[RO] count: Amount of memory in the CMA area.”h]”h¸)”}”(hjTh]”hŒ-[RO] count: Amount of memory in the CMA area.”…””}”(hjVhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KhjRubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)”}”(hŒ:[RO] order_per_bit: Order of pages represented by one bit.”h]”h¸)”}”(hjkh]”hŒ:[RO] order_per_bit: Order of pages represented by one bit.”…””}”(hjmhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khjiubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)”}”(hŒc[RO] bitmap: The bitmap of allocated pages in the area. This is the same as ranges/0/base_pfn.”h]”j )”}”(hhh]”j)”}”(hŒ^[RO] bitmap: The bitmap of allocated pages in the area. This is the same as ranges/0/base_pfn.”h]”(j)”}”(hŒ7[RO] bitmap: The bitmap of allocated pages in the area.”h]”hŒ7[RO] bitmap: The bitmap of allocated pages in the area.”…””}”(hj‹hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh¶h Khj‡ubj()”}”(hhh]”h¸)”}”(hŒ&This is the same as ranges/0/base_pfn.”h]”hŒ&This is the same as ranges/0/base_pfn.”…””}”(hjœhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khj™ubah}”(h]”h ]”h"]”h$]”h&]”uh1j'hj‡ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh¶h Khj„ubah}”(h]”h ]”h"]”h$]”h&]”uh1j hj€ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)”}”(hŒP[RO] ranges/N/base_pfn: The base PFN of contiguous range N in the CMA area.”h]”j )”}”(hhh]”j)”}”(hŒK[RO] ranges/N/base_pfn: The base PFN of contiguous range N in the CMA area.”h]”(j)”}”(hŒ:[RO] ranges/N/base_pfn: The base PFN of contiguous range N”h]”hŒ:[RO] ranges/N/base_pfn: The base PFN of contiguous range N”…””}”(hjÍhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh¶h KhjÉubj()”}”(hhh]”h¸)”}”(hŒin the CMA area.”h]”hŒin the CMA area.”…””}”(hjÞhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KhjÛubah}”(h]”h ]”h"]”h$]”h&]”uh1j'hjÉubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh¶h KhjÆubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjÂubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)”}”(hŒU[RO] ranges/N/bitmap: The bit map of allocated pages in range N in the CMA area.”h]”j )”}”(hhh]”j)”}”(hŒP[RO] ranges/N/bitmap: The bit map of allocated pages in range N in the CMA area.”h]”(j)”}”(hŒ7[RO] ranges/N/bitmap: The bit map of allocated pages in”h]”hŒ7[RO] ranges/N/bitmap: The bit map of allocated pages in”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh¶h Khj ubj()”}”(hhh]”h¸)”}”(hŒrange N in the CMA area.”h]”hŒrange N in the CMA area.”…””}”(hj hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1j'hj ubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhŸh¶h Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1j hjubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubj)”}”(hŒm[WO] alloc: Allocate N pages from that CMA area. For example:: echo 5 > /cma//alloc ”h]”(h¸)”}”(hŒ>[WO] alloc: Allocate N pages from that CMA area. For example::”h]”hŒ=[WO] alloc: Allocate N pages from that CMA area. For example:”…””}”(hjJhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KhjFubhŒ literal_block”“”)”}”(hŒ'echo 5 > /cma//alloc”h]”hŒ'echo 5 > /cma//alloc”…””}”hjZsbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1jXhŸh¶h KhjFubeh}”(h]”h ]”h"]”h$]”h&]”uh1jhjubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ-”uh1jhŸh¶h Khhýubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhŸh¶h Khh£hžhubh¸)”}”(hŒ7would try to allocate 5 pages from the 'cma_name' area.”h]”hŒ;would try to allocate 5 pages from the ‘cma_name’ area.”…””}”(hj~hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khh£hžhubhÖ)”}”(hŒC- [WO] free: Free N pages from that CMA area, similar to the above.”h]”j)”}”(hhh]”j)”}”(hŒA[WO] free: Free N pages from that CMA area, similar to the above.”h]”h¸)”}”(hj•h]”hŒA[WO] free: Free N pages from that CMA area, similar to the above.”…””}”(hj—hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khj“ubah}”(h]”h ]”h"]”h$]”h&]”uh1jhjubah}”(h]”h ]”h"]”h$]”h&]”jvjwuh1jhŸh¶h KhjŒubah}”(h]”h ]”h"]”h$]”h&]”uh1hÕhŸh¶h Khh£hžhubeh}”(h]”Œcma-debugfs-interface”ah ]”h"]”Œcma debugfs interface”ah$]”h&]”uh1h¡hhhžhhŸh¶h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h¶uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¦NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jáŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h¶Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”j»j¸sŒ nametypes”}”j»‰sh}”j¸h£sŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.