linux/drivers/acpi/custom_method.c
<<
ptio v2/spa v2/form v2a ptio v href="../linux+v3.7.7/drivers/acpi/custom_method.c">ptio v2img src="../.static/gfx/right.png" alt=">>">pt2/spa pt2spa class="lxr_search">ptioptio v2input typptihidden" namptinavtarget" 2ptio v2input typptitext" namptisearch" idtisearch">ptio v2butt2.1typptisubmit">Searchptio vPrefs v2/a>pt2/spa io v v2/div io v v2form ac2" ="ajax+*" method="post" onsubmit="return false;">pt2input typptihidden" namptiajax_lookup" idtiajax_lookup" 2pio v v2/form pio v v2div class="headingbott2m">
2div idtifile_contents"
v v12/a>2spa	 class="comment">/*2/spa	  v v22/a>2spa	 class="comment"> * debugfs.c - ACPI debugfs interface to userspace.2/spa	  v v32/a>2spa	 class="comment"> */2/spa	  v v42/a>pv v52/a>#include <linux/init.h2/a>>pv v62/a>#include <linux/module.h2/a>>pv v72/a>#include <linux/kernel.h2/a>>pv v82/a>#include <linux/uaccess.h2/a>>pv v92/a>#include <linux/debugfs.h2/a>>pv 6.27a>#include <acpi/acpi_drivers.h2/a>>pv 112/a>pv 1227a>#include "internal.h2/a>"pv 132/a>pv 142/a>#definev2a href="+code=_COMPONENT" class="sref">_COMPONENT2/a>              2a href="+code=ACPI_SYSTEM_COMPONENT" class="sref">ACPI_SYSTEM_COMPONENT2/a>pv 152/a>2a href="+code=ACPI_MODULE_NAMA" class="sref">ACPI_MODULE_NAMAvmment"> * debugfs.c - ACPI debugfs 2p41trvv v62/a>#include &1lt;v v72/a>#include &1lt;v v82/a>#include &1lt;v v92/a>#include &1lt;v 6.27a>#include 2lt;/*2/spa	  v 112/a>pv v22/a>2spa	 classquot;22ref= alt=" YSTEM_COMPONENTssize_tODULE_NAMAvmmenssize_thref=YSTEM_COMPONENTcm_writeODULE_NAMAvmmencm_write- ACP1tructSYSTEM_COMPONENTlassODULE_NAMAvmmenlasshref=*YSTEM_COMPONENTlassODULE_NAMAvmmenlasshref, "dost charONENT" class="sre_hrefNENT2/a>        _hrefhref=*ONENT" class="srhref_bufNENT2/a>       href_bufhref,i/custom_method.c#L12" idtiL12" class="l2ne" namp2iL13">v 132/a>pv 142/a>#definev22 href2"+cod{i/custom_method.c#L12" idtiL12" class="l2ne" namp2iL15">v 152/a>2a href="2code=25href="+code= alt=" charO*YSTEM_COMPONENTbufNENT2/a>       bufhrefpi/custom_method.c#L13" idtiL13" class="l2e" nampt2iL6">v v62/a>#include &2lt;v v72/a>#include &2lt;v v82/a>#include &2lt;v v92/a>#include &2lt;       ;p       tablehrefpi/custom_method.c#L13" idtiL13" class="l3ne" namp3iL10">v 6.27a>#include 3lt;v 112/a>pv v22/a>2spa	 clas3quot;32href========if (!(*YSTEM_COMPONENTpn fODULE_NAMAvmmenpn fhref)) {i/custom_method.c#L12" idtiL12" class="l3e" namptiiL3">v v32/a>2spa	 classdrive33href="+code=ACPI_Sod>/*2/spa	  v 142/a>#definev23 href34href="+code=ACPI_Sodif (YSTEM_COMPONENTcountODULE_NAMAvmmencounthref/acpi= sizeofP1tructSYSTEM_COMPONENT;p       ;pv 152/a>2a href="3code=35href="+code=ACPI_Sode=ACPI_Sut typp-YSTEM_COMPONENTEINVALNENT2/a>       EINVALhrefpi/custom_method.c#L13" idtiL13" class="l3e" nampt3iL6">v v62/a>#include &3lt;       copy_frL13href- ACP&YSTEM_COMPONENTtableNENT2/a>       tablehref, YSTEM_COMPONENThref_bufNENT2/a>       href_bufhref,i/custom_method.c#L12" idtiL12" class="l3e" nampt3iL7">v v72/a>#include &3lt;       ;pv v82/a>#include &3lt;v v92/a>#include &3lt;STEM_COMPONENTuncopied_bytefODULE_NAMAvmmenuncopied_bytefhref ==YSTEM_COMPONENTmax_sizeNENT2/a>       max_sizehref ==YSTEM_COMPONENTtableNENT2/a>       tablehref.YSTEM_COMPONENTlengthODULE_NAMAvmmenlengthhrefpi/custom_method.c#L13" idtiL13" class="l4ne" namp4iL10">v 6.27a>#include 4lt;STEM_COMPONENTbufNENT2/a>       bufhref ==YSTEM_COMPONENTkzallocNENT2/a>       kzalloc- ACPISTEM_COMPONENTmax_sizeNENT2/a>       max_sizehref, YSTEM_COMPONENTGFP_KERNELNENT2/a>       GFP_KERNELhref)pi/custom_method.c#L13" idtiL13" class="l4ne" namp4iL11">v 112/a>pSTEM_COMPONENTbufNENT2/a>       bufhref)i/custom_method.c#L12" idtiL12" class="l4e" nampt4iL2">v v22/a>2spa	 clas4quot;42href="+code=ACPI_Sode=ACPI_Sut typp-YSTEM_COMPONENTENOMEMYSTEM_COMPONENTENOMEMhrefpi/custom_method.c#L13" idtiL13" class="l4e" nampt4iL3">v v32/a>2spa	 clas4drive43href="+code=}i/custom_method.c#L13" idtiL13" class="l4e" namptiiL4">v v42/a>pv 152/a>2a href="4code=45href========if (>STEM_COMPONENTbufNENT2/a>       bufhref ===YSTEM_COMPONENTNULLNENT2/a>       NULLhref)i/custom_method.c#L12" idtiL12" class="l4e" nampt4iL6">v v62/a>#include &4lt;       EINVALhrefpi/custom_method.c#L13" idtiL13" class="l4e" nampt4iL7">v v72/a>#include &4lt;v v82/a>#include &4lt;       max_sizehref) ||i/custom_method.c#L15" idtiL15" class="l4e" nampt4iL9">v v92/a>#include &4lt;       max_sizehref) ||i/custom_method.c#L15" idtiL15" class="l5ne" namp5iL10">v 6.27a>#include 5lt;v 112/a>pv v22/a>2spa	 clas5quot;52href="+code=ACPI_Sodut typp-YSTEM_COMPONENTEINVALNENT2/a>       EINVALhrefpi/custom_method.c#L13" idtiL13" class="l5e" nampt5iL3">v v32/a>2spa	 clas5drive5s/acpi/custom_method.c#L14" idtiL14" class="l5e" nampt5iL4">v v42/a>pv v52/a>#include &lcode=55href="+code=ACPI_SodYSTEM_COMPONENTkfreeNENT2/a>       kfree- ACP>STEM_COMPONENTbufNENT2/a>       bufhref)pi/custom_method.c#L13" idtiL13" class="l5e" nampt5iL6">v v62/a>#include &5lt;STEM_COMPONENTbufNENT2/a>       bufhref ==YSTEM_COMPONENTNULLNENT2/a>       NULLhrefpi/custom_method.c#L13" idtiL13" class="l5e" nampt5iL7">v v72/a>#include &5lt;v v82/a>#include &5lt;v v92/a>#include &5lt;v 6.27a>#include 6lt;v 112/a>pv v22/a>2spa	 clas6quot;62/acpi/custom_method.c#L15" idtiL15" class="l6e" nampt6iL3">v v32/a>2spa	 clas6drive63href========if (!>STEM_COMPONENTuncopied_bytefODULE_NAMAvmmenuncopied_bytefhref) {i/custom_method.c#L12" idtiL12" class="l6e" nampt6iL4">v v42/a>p       ;pSTEM_COMPONENTbufNENT2/a>       bufhref)pi/custom_method.c#L13" idtiL13" class="l6e" nampt6iL5">v v52/a>#include &6code=65href="+code=ACPI_SodYSTEM_COMPONENTkfreeNENT2/a>       kfree- ACP>STEM_COMPONENTbufNENT2/a>       bufhref)pi/custom_method.c#L13" idtiL13" class="l6e" namptiiL6">v v62/a>#include &llt;STEM_COMPONENTbufNENT2/a>       bufhref ==YSTEM_COMPONENTNULLNENT2/a>       NULLhrefpi/custom_method.c#L13" idtiL13" class="l6e" nampt6iL7">v v72/a>#include &6lt;STEM_COMPONENTt"> *FAILURMODULE_NAMAvmment"> *FAILURM- ACP>STEM_COMPONENT altufODULE_NAMAvmmen altufhref))i/custom_method.c#L12" idtiL12" class="l6e" nampt6iL8">v v82/a>#include &6lt;       EINVALhrefpi/custom_method.c#L13" idtiL13" class="l6e" nampt6iL9">v v92/a>#include &6lt;STEM_COMPONENTadd_taintODULE_NAMAvmmenadd_taint- ACP>STEM_COMPONENTTAINT_OVERRIDDEN_t"> *TABLMODULE_NAMAvmmenTAINT_OVERRIDDEN_t"> *TABLMhref)pi/custom_method.c#L13" idtiL13" class="l7ne" namp7iL10">v 6.27a>#include 7lt;v 112/a>pv v22/a>2spa	 clas7quot;72href="+code=ut typpYSTEM_COMPONENTcountODULE_NAMAvmmencounthrefpi/custom_method.c#L6" idtiL6" class="lin7e" nampt7iL3">v v32/a>2spa	 clas7drive73href}i/custom_method.c#L13" idtiL13" class="l7e" nampt7iL4">v v42/a>pv v52/a>#include &7code=75href alt=" cdost 1tructSYSTEM_COMPONENTlass_opera"posfODULE_NAMAvmmenlass_opera"posfhref=YSTEM_COMPONENTcm_fopfODULE_NAMAvmmencm_fopfhref =={i/custom_method.c#L12" idtiL12" class="l7e" nampt7iL6">v v62/a>#include &7lt;v v72/a>#include &llt;v v82/a>#include &7lt;v v92/a>#include &7lt;v 6.27a>#include 8lt;v 112/a>pv v22/a>2spa	 clas8quot;82href========if (YSTEM_COMPONENT;p       NULLhref)i/custom_method.c#L12" idtiL12" class="l8e" nampt8iL3">v v32/a>2spa	 clas8drive83href="+code=ACPI_Sodut typp-YSTEM_COMPONENTENOI_SYSTEM_COMPONENTENOI_Shrefpi/custom_method.c#L6" idtiL6" class="lin8e" nampt8iL4">v v42/a>pv v52/a>#include &8code=85href="+code=YSTEM_COMPONENTcm_p" tryODULE_NAMAvmmencm_p" tryhref ==YSTEM_COMPONENTdeef="d_create_lassODULE_NAMAvmmendeef="d_create_lass- ACP> debugfs 2p41trvv v62/a>#include &8lt;       NULLhref, &YSTEM_COMPONENTcm_fopfODULE_NAMAvmmencm_fopfhref)pi/custom_method.c#L13" idtiL13" class="l8e" nampt8iL7">v v72/a>#include &8lt;       NULLhref)i/custom_method.c#L12" idtiL12" class="l8e" namptiiL8">v v82/a>#include &llt;v v92/a>#include &8lt;v 6.27a>#include 9lt;v 112/a>pv v22/a>2spa	 clas9quot;92/acpi/custom_method.c#L15" idtiL15" class="l9e" nampt9iL3">v v32/a>2spa	 clas9drive93href alt=" voidONENT" class="sre_ex"dODULE_NAMAvmmene_ex"dhref=YSTEM_COMPONENT;pv v42/a>pv v52/a>#include &9code=95href========if (>STEM_COMPONENTcm_p" tryODULE_NAMAvmmencm_p" tryhref)i/custom_method.c#L12" idtiL12" class="l9e" nampt9iL6">v v62/a>#include &9lt;STEM_COMPONENThref="d_removsODULE_NAMAvmmendeef="d_removs- ACP>STEM_COMPONENTcm_p" tryODULE_NAMAvmmencm_p" tryhref)pi/custom_method.c#L9" idtiL9" class="linee" nampt9iL7">v v72/a>#include &9lt;v v82/a>#include &9lt;v v92/a>#include &llt;STEM_COMPONENT;pv 6.27a>#include &llt;<&ll/acpYSTEM_COMPONENTmef="d_ex"dODULE_NAMAvmmenmef="d_ex"d- ACP>STEM_COMPONENT;pv 112/a>p/pre v
 v v2

ent"> 
2div i1">v 11footer">
The original LXR software by the /custom_mhttp://sourceforge.net/projects/lxr">LXR  hreu="dyhref, typp experief="al od.cion by /custom_mmailto:lxr@t;p 
div i1">v 11subfooter">
lxr.t;p 
2d/body 
d/htmlv2