
{"id":7233,"date":"2012-05-20T12:45:12","date_gmt":"2012-05-20T12:45:12","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=7233"},"modified":"2012-05-20T12:45:12","modified_gmt":"2012-05-20T12:45:12","slug":"using-regular-expressions-in-kernel-source","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/05\/20\/using-regular-expressions-in-kernel-source\/","title":{"rendered":"using regular expressions in kernel source"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$ 4.2.20 67 568---&gt; <h5>grep  -r '^kernel'  * | head -n20<\/h5>\narch\/alpha\/kernel\/entry.S:kernel_thread:\narch\/alpha\/kernel\/entry.S:kernel_execve:\narch\/avr32\/kernel\/head.S:kernel_entry:\narch\/avr32\/kernel\/head.S:kernel_start_addr:\narch\/sh\/boot\/compressed\/head_32.S:kernel_start_addr:\narch\/mn10300\/kernel\/kernel_execve.S:kernel_execve:\narch\/mn10300\/kernel\/kthread.S:kernel_thread_helper:\narch\/um\/.gitignore:kernel\/config.c\narch\/um\/.gitignore:kernel\/config.tmp\narch\/um\/.gitignore:kernel\/vmlinux.lds\narch\/cris\/arch-v32\/kernel\/process.c:kernel_thread_helper(void* dummy, int (*fn)(void *), void * arg)\narch\/cris\/arch-v32\/kernel\/process.c:kernel_thread(int (*fn)(void *), void * arg, unsigned long flags)\narch\/cris\/arch-v32\/kernel\/entry.S:kernel_execve:\narch\/cris\/include\/arch-v32\/arch\/bitops.h:kernel_ffs(unsigned long w)\narch\/cris\/arch-v10\/kernel\/entry.S:kernel_execve:\narch\/cris\/arch-v10\/README.mm:kernel segments like the i386, need to setup swapper_pg_dir directly in head.S\narch\/cris\/arch-v10\/README.mm:kernel's internal paged memory system, vmalloc\/vfree.\narch\/frv\/kernel\/kernel_thread.S:kernel_thread_emsg:\narch\/frv\/kernel\/kernel_thread.S:kernel_thread:\narch\/frv\/kernel\/kernel_thread.S:kernel_thread_error:\n$ 4.2.20 68 569---&gt;\n\n$ 4.2.20 68 569---&gt; <h5>grep  -r 'kernel$'  * | head -n20 <\/h5>\narch\/hexagon\/mm\/copy_from_user.S: * User memory copy functions for kernel\narch\/hexagon\/mm\/strnlen_user.S: * User string length functions for kernel\narch\/hexagon\/kernel\/vmlinux.lds.S: * Linker script for Hexagon kernel\narch\/hexagon\/kernel\/head.S:\tcall start_kernel\narch\/hexagon\/include\/asm\/pgalloc.h:\t * that new address spaces always contain the kernel\narch\/hexagon\/include\/asm\/pgalloc.h: * Hexagon VM spec has a \"monolithic\" L1 table for user and kernel\narch\/alpha\/boot\/bootp.c: * This file is used for creating a bootp file for the Linux\/AXP kernel\narch\/alpha\/boot\/main.c: * This file is the bootloader for the Linux\/AXP kernel\narch\/alpha\/boot\/bootpz.c: * Linux\/AXP kernel\narch\/alpha\/boot\/bootpz.c:   copy area, because there needs to be a buffer area after the kernel\narch\/alpha\/boot\/bootpz.c:\t   occur when using the normal START_ADDR of the kernel\narch\/alpha\/boot\/head.S:\tjsr\t$26,start_kernel\narch\/alpha\/Kconfig:\t  singleprocessor machines. On a singleprocessor machine, the kernel\narch\/alpha\/mm\/fault.c:\t\/* Send a sigbus, regardless of whether we were in kernel\narch\/alpha\/kernel\/vmlinux.lds.S:\t} :kernel\narch\/alpha\/kernel\/vmlinux.lds.S:\t} :kernel\narch\/alpha\/kernel\/err_marvel.c:\t *\t1) a uniprocessor kernel\narch\/alpha\/kernel\/head.S:\tjsr\t$26,start_kernel\narch\/alpha\/kernel\/entry.S:\tbeq\t$0, ret_to_kernel\narch\/alpha\/kernel\/entry.S:\tbr\tret_to_kernel\n$ 4.2.20 69 570---&gt;\n\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $ 4.2.20 67 568&#8212;&gt; grep -r &#8216;^kernel&#8217; * | head -n20 arch\/alpha\/kernel\/entry.S:kernel_thread: arch\/alpha\/kernel\/entry.S:kernel_execve: arch\/avr32\/kernel\/head.S:kernel_entry: arch\/avr32\/kernel\/head.S:kernel_start_addr: arch\/sh\/boot\/compressed\/head_32.S:kernel_start_addr: arch\/mn10300\/kernel\/kernel_execve.S:kernel_execve: arch\/mn10300\/kernel\/kthread.S:kernel_thread_helper: arch\/um\/.gitignore:kernel\/config.c arch\/um\/.gitignore:kernel\/config.tmp arch\/um\/.gitignore:kernel\/vmlinux.lds arch\/cris\/arch-v32\/kernel\/process.c:kernel_thread_helper(void* dummy, int (*fn)(void *), void * arg) arch\/cris\/arch-v32\/kernel\/process.c:kernel_thread(int (*fn)(void *), void * arg, unsigned long flags) arch\/cris\/arch-v32\/kernel\/entry.S:kernel_execve: arch\/cris\/include\/arch-v32\/arch\/bitops.h:kernel_ffs(unsigned long w) arch\/cris\/arch-v10\/kernel\/entry.S:kernel_execve: arch\/cris\/arch-v10\/README.mm:kernel segments like the i386, need to setup swapper_pg_dir directly &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/05\/20\/using-regular-expressions-in-kernel-source\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;using regular expressions in kernel source&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7233"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=7233"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/7233\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=7233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=7233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=7233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}