亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? kernel-hacking.tmpl

?? ARM 嵌入式 系統(tǒng) 設(shè)計(jì)與實(shí)例開(kāi)發(fā) 實(shí)驗(yàn)教材 二源碼
?? TMPL
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
   <para>    Linus and the other developers sometimes change function or    structure names in development kernels; this is not done just to    keep everyone on their toes: it reflects a fundamental change    (eg. can no longer be called with interrupts on, or does extra    checks, or doesn't do checks which were caught before).  Usually    this is accompanied by a fairly complete note to the linux-kernel    mailing list; search the archive.  Simply doing a global replace    on the file usually makes things <emphasis>worse</emphasis>.   </para>  </sect1>  <sect1 id="conventions-initialising">   <title>Initializing structure members</title>   <para>    The preferred method of initializing structures is to use the    gcc Labeled Elements extension, eg:   </para>   <programlisting>static struct block_device_operations opt_fops = {        open:                   opt_open,        release:                opt_release,        ioctl:                  opt_ioctl,        check_media_change:     opt_media_change,};   </programlisting>   <para>    This makes it easy to grep for, and makes it clear which    structure fields are set.  You should do this because it looks    cool.   </para>  </sect1>  <sect1 id="conventions-gnu-extns">   <title>GNU Extensions</title>   <para>    GNU Extensions are explicitly allowed in the Linux kernel.    Note that some of the more complex ones are not very well    supported, due to lack of general use, but the following are    considered standard (see the GCC info page section "C    Extensions" for more details - Yes, really the info page, the    man page is only a short summary of the stuff in info):   </para>   <itemizedlist>    <listitem>     <para>      Inline functions     </para>    </listitem>    <listitem>     <para>      Statement expressions (ie. the ({ and }) constructs).     </para>    </listitem>    <listitem>     <para>      Declaring attributes of a function / variable / type      (__attribute__)     </para>    </listitem>    <listitem>     <para>      Labeled elements     </para>    </listitem>    <listitem>     <para>      typeof     </para>    </listitem>    <listitem>     <para>      Zero length arrays     </para>    </listitem>    <listitem>     <para>      Macro varargs     </para>    </listitem>    <listitem>     <para>      Arithmetic on void pointers     </para>    </listitem>    <listitem>     <para>      Non-Constant initializers     </para>    </listitem>    <listitem>     <para>      Assembler Instructions (not outside arch/ and include/asm/)     </para>    </listitem>    <listitem>     <para>      Function names as strings (__FUNCTION__)     </para>    </listitem>    <listitem>     <para>      __builtin_constant_p()     </para>    </listitem>   </itemizedlist>   <para>    Be wary when using long long in the kernel, the code gcc generates for    it is horrible and worse: division and multiplication does not work    on i386 because the GCC runtime functions for it are missing from    the kernel environment.   </para>    <!-- FIXME: add a note about ANSI aliasing cleanness -->  </sect1>  <sect1 id="conventions-cplusplus">   <title>C++</title>      <para>    Using C++ in the kernel is usually a bad idea, because the    kernel does not provide the necessary runtime environment    and the include files are not tested for it.  It is still    possible, but not recommended.  If you really want to do    this, forget about exceptions at least.   </para>  </sect1>  <sect1 id="conventions-ifdef">   <title>&num;if</title>      <para>    It is generally considered cleaner to use macros in header files    (or at the top of .c files) to abstract away functions rather than    using `#if' pre-processor statements throughout the source code.   </para>  </sect1> </chapter> <chapter id="submitting">  <title>Putting Your Stuff in the Kernel</title>  <para>   In order to get your stuff into shape for official inclusion, or   even to make a neat patch, there's administrative work to be   done:  </para>  <itemizedlist>   <listitem>    <para>     Figure out whose pond you've been pissing in.  Look at the top of     the source files, inside the <filename>MAINTAINERS</filename>     file, and last of all in the <filename>CREDITS</filename> file.     You should coordinate with this person to make sure you're not     duplicating effort, or trying something that's already been     rejected.    </para>    <para>     Make sure you put your name and EMail address at the top of     any files you create or mangle significantly.  This is the     first place people will look when they find a bug, or when     <emphasis>they</emphasis> want to make a change.    </para>   </listitem>   <listitem>    <para>     Usually you want a configuration option for your kernel hack.     Edit <filename>Config.in</filename> in the appropriate directory     (but under <filename>arch/</filename> it's called     <filename>config.in</filename>).  The Config Language used is not     bash, even though it looks like bash; the safe way is to use only     the constructs that you already see in     <filename>Config.in</filename> files (see     <filename>Documentation/kbuild/config-language.txt</filename>).     It's good to run "make xconfig" at least once to test (because     it's the only one with a static parser).    </para>    <para>     Variables which can be Y or N use <type>bool</type> followed by a     tagline and the config define name (which must start with     CONFIG_).  The <type>tristate</type> function is the same, but     allows the answer M (which defines     <symbol>CONFIG_foo_MODULE</symbol> in your source, instead of     <symbol>CONFIG_FOO</symbol>) if <symbol>CONFIG_MODULES</symbol>     is enabled.    </para>    <para>     You may well want to make your CONFIG option only visible if     <symbol>CONFIG_EXPERIMENTAL</symbol> is enabled: this serves as a     warning to users.  There many other fancy things you can do: see     the various <filename>Config.in</filename> files for ideas.    </para>   </listitem>   <listitem>    <para>     Edit the <filename>Makefile</filename>: the CONFIG variables are     exported here so you can conditionalize compilation with `ifeq'.     If your file exports symbols then add the names to     <varname>export-objs</varname> so that genksyms will find them.     <caution>      <para>       There is a restriction on the kernel build system that objects       which export symbols must have globally unique names.       If your object does not have a globally unique name then the       standard fix is to move the       <function>EXPORT_SYMBOL()</function> statements to their own       object with a unique name.       This is why several systems have separate exporting objects,       usually suffixed with ksyms.      </para>     </caution>    </para>   </listitem>   <listitem>    <para>     Document your option in Documentation/Configure.help.  Mention     incompatibilities and issues here.  <emphasis> Definitely     </emphasis> end your description with <quote> if in doubt, say N     </quote> (or, occasionally, `Y'); this is for people who have no     idea what you are talking about.    </para>   </listitem>   <listitem>    <para>     Put yourself in <filename>CREDITS</filename> if you've done     something noteworthy, usually beyond a single file (your name     should be at the top of the source files anyway).     <filename>MAINTAINERS</filename> means you want to be consulted     when changes are made to a subsystem, and hear about bugs; it     implies a more-than-passing commitment to some part of the code.    </para>   </listitem>      <listitem>    <para>     Finally, don't forget to read <filename>Documentation/SubmittingPatches</filename>     and possibly <filename>Documentation/SubmittingDrivers</filename>.    </para>   </listitem>  </itemizedlist> </chapter> <chapter id="cantrips">  <title>Kernel Cantrips</title>  <para>   Some favorites from browsing the source.  Feel free to add to this   list.  </para>  <para>   <filename>include/linux/brlock.h:</filename>  </para>  <programlisting>extern inline void br_read_lock (enum brlock_indices idx){        /*         * This causes a link-time bug message if an         * invalid index is used:         */        if (idx >= __BR_END)                __br_lock_usage_bug();        read_lock(&amp;__brlock_array[smp_processor_id()][idx]);}  </programlisting>  <para>   <filename>include/linux/fs.h</filename>:  </para>  <programlisting>/* * Kernel pointers have redundant information, so we can use a * scheme where we can return either an error code or a dentry * pointer with the same return value. * * This should be a per-architecture thing, to allow different * error and pointer decisions. */ #define ERR_PTR(err)    ((void *)((long)(err))) #define PTR_ERR(ptr)    ((long)(ptr)) #define IS_ERR(ptr)     ((unsigned long)(ptr) > (unsigned long)(-1000))</programlisting>  <para>   <filename>include/asm-i386/uaccess.h:</filename>  </para>  <programlisting>#define copy_to_user(to,from,n)                         \        (__builtin_constant_p(n) ?                      \         __constant_copy_to_user((to),(from),(n)) :     \         __generic_copy_to_user((to),(from),(n)))  </programlisting>  <para>   <filename>arch/sparc/kernel/head.S:</filename>  </para>  <programlisting>/* * Sun people can't spell worth damn. "compatability" indeed. * At least we *know* we can't spell, and use a spell-checker. *//* Uh, actually Linus it is I who cannot spell. Too much murky * Sparc assembly will do this to ya. */C_LABEL(cputypvar):        .asciz "compatability"/* Tested on SS-5, SS-10. Probably someone at Sun applied a spell-checker. */        .align 4C_LABEL(cputypvar_sun4m):        .asciz "compatible"  </programlisting>  <para>   <filename>arch/sparc/lib/checksum.S:</filename>  </para>  <programlisting>        /* Sun, you just can't beat me, you just can't.  Stop trying,         * give up.  I'm serious, I am going to kick the living shit         * out of you, game over, lights out.         */  </programlisting> </chapter> <chapter id="credits">  <title>Thanks</title>  <para>   Thanks to Andi Kleen for the idea, answering my questions, fixing   my mistakes, filling content, etc.  Philipp Rumpf for more spelling   and clarity fixes, and some excellent non-obvious points.  Werner   Almesberger for giving me a great summary of   <function>disable_irq()</function>, and Jes Sorensen and Andrea   Arcangeli added caveats. Michael Elizabeth Chastain for checking   and adding to the Configure section. <!-- Rusty insisted on this   bit; I didn't do it! --> Telsa Gwynne for teaching me DocBook.   </para> </chapter></book>

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美一区二区三区乱码| 国产成人啪免费观看软件| 久久久一区二区三区| 91精品福利在线一区二区三区| 成人av集中营| 成人教育av在线| 高清av一区二区| av电影一区二区| 福利一区福利二区| 9久草视频在线视频精品| 国产99久久久国产精品潘金| 久久99精品国产麻豆不卡| 久久精品久久精品| 成人欧美一区二区三区在线播放| 国产欧美中文在线| 亚洲猫色日本管| 亚洲3atv精品一区二区三区| 日韩精彩视频在线观看| 无码av免费一区二区三区试看| 开心九九激情九九欧美日韩精美视频电影| 亚洲国产视频网站| 日本不卡1234视频| 成人丝袜视频网| 日韩欧美专区在线| 一区二区日韩电影| 国产精品77777竹菊影视小说| 欧美中文字幕一二三区视频| 精品欧美黑人一区二区三区| 亚洲综合色在线| 成人av在线一区二区三区| 日韩精品影音先锋| 日本特黄久久久高潮| 色综合天天性综合| 久久久久久一二三区| 日本怡春院一区二区| 欧美色综合网站| 亚洲一线二线三线久久久| 韩国一区二区三区| 久久青草国产手机看片福利盒子 | 2023国产精品自拍| 男人的j进女人的j一区| 777欧美精品| 天天爽夜夜爽夜夜爽精品视频| www.欧美日韩国产在线| 久久精品一区二区| www.视频一区| 一区二区三区在线视频播放| 91美女片黄在线| 精品一区二区三区免费播放 | 欧美一区二区黄| 欧美日韩亚洲丝袜制服| 最新热久久免费视频| 91女厕偷拍女厕偷拍高清| 欧美在线综合视频| 久久精品日产第一区二区三区高清版| 视频一区视频二区中文| 91黄色激情网站| 看片的网站亚洲| 国产精品蜜臀av| 在线视频一区二区三区| 亚洲国产毛片aaaaa无费看| 欧美高清精品3d| 成人aaaa免费全部观看| 亚洲国产一区视频| 国产精品初高中害羞小美女文| 午夜久久电影网| 欧美精品久久99久久在免费线| 男女性色大片免费观看一区二区 | 2024国产精品| 色婷婷综合久久久中文字幕| 精品一二三四区| 日韩精品午夜视频| 亚洲综合免费观看高清完整版| 日韩一级完整毛片| 91国模大尺度私拍在线视频| 久久66热re国产| 蜜桃视频一区二区三区| 亚洲免费av网站| 亚洲另类中文字| 中文字幕一区二区在线播放| 久久综合九色综合久久久精品综合| 欧美中文字幕一区| 欧美系列亚洲系列| 欧美亚洲图片小说| 91视频在线观看| 99久久精品国产网站| 成人性生交大片免费看中文网站| 奇米888四色在线精品| 亚洲国产精品尤物yw在线观看| 国产视频亚洲色图| 中文字幕一区二区三区在线不卡| 国产欧美日韩视频在线观看| 久久久久久久久久久电影| 久久久一区二区| 亚洲视频在线观看一区| 亚洲精选视频免费看| 亚洲一区二区三区在线看| 亚洲高清免费在线| 久久av资源网| 99久久精品情趣| 日韩一区二区免费视频| 久久精品一区四区| 亚洲视频一区二区在线观看| 日韩中文字幕亚洲一区二区va在线| 免费一级片91| 成人福利视频网站| 3d动漫精品啪啪一区二区竹菊| 日韩一区二区在线观看视频| 欧美极品另类videosde| 亚洲精品第1页| 国产一区二区0| 91偷拍与自偷拍精品| 日韩亚洲电影在线| 亚洲免费资源在线播放| 狠狠久久亚洲欧美| 精品久久久久久无| 午夜日韩在线电影| 成人免费视频国产在线观看| 91精品国产免费久久综合| 国产精品天美传媒| 国产九色sp调教91| 日韩欧美视频一区| 视频一区二区三区中文字幕| 91麻豆123| 亚洲精品视频在线观看免费| 精品写真视频在线观看| 日韩三级视频中文字幕| 亚洲二区在线观看| 欧美日韩国产成人在线免费| 国产精品美女久久福利网站| 久久99精品国产麻豆不卡| 6080国产精品一区二区| 亚洲h精品动漫在线观看| 91福利社在线观看| 午夜欧美在线一二页| 欧美人狂配大交3d怪物一区| 亚洲成人三级小说| 日韩欧美一区二区三区在线| 日本aⅴ免费视频一区二区三区| 欧美日韩和欧美的一区二区| 一二三四区精品视频| 欧美三电影在线| 久久成人18免费观看| 一区二区三区波多野结衣在线观看| 91视频国产资源| 一区二区三区在线视频播放| 免费一级片91| 久久久亚洲精华液精华液精华液| 国产精品久久三区| 久久精品国产精品亚洲精品| 91精品国产乱码| 日本欧美一区二区三区乱码| 欧美不卡一区二区三区| 高清不卡一二三区| 亚洲国产精品久久人人爱| 精品国产三级电影在线观看| 成人午夜在线视频| 蜜臀久久99精品久久久画质超高清| 久久久影院官网| 欧美日韩国产在线观看| aaa欧美大片| 国产一区二区三区免费播放| 亚洲韩国精品一区| 国产日韩精品一区| 欧美日韩极品在线观看一区| 懂色av一区二区夜夜嗨| 婷婷成人综合网| 亚洲视频 欧洲视频| 亚洲国产成人一区二区三区| 欧美肥大bbwbbw高潮| 91丨porny丨中文| 91视频免费看| 99热在这里有精品免费| 成人午夜av电影| 国产精品1024| 东方欧美亚洲色图在线| 国内精品久久久久影院薰衣草| 免费在线观看日韩欧美| 日韩成人精品视频| 日韩av在线发布| 精品一区二区三区视频在线观看 | 亚洲午夜羞羞片| 天堂精品中文字幕在线| 日本大胆欧美人术艺术动态| 裸体歌舞表演一区二区| 免费高清成人在线| 久久不见久久见免费视频1| 国产资源精品在线观看| 成人天堂资源www在线| 色综合激情久久| 欧美一级视频精品观看| 久久精品在线观看| 亚洲精品水蜜桃| 韩日精品视频一区| av亚洲精华国产精华精| 精品视频1区2区| 欧美高清在线视频| 亚洲在线观看免费视频| 国产一区二区三区观看| 欧美在线免费播放|