using regular expressions in kernel source

commandline session

$ 4.2.20 67 568---> 
grep -r '^kernel' * | 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/ 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/ segments like the i386, need to setup swapper_pg_dir directly in head.S arch/cris/arch-v10/'s internal paged memory system, vmalloc/vfree. arch/frv/kernel/kernel_thread.S:kernel_thread_emsg: arch/frv/kernel/kernel_thread.S:kernel_thread: arch/frv/kernel/kernel_thread.S:kernel_thread_error: $ 4.2.20 68 569---> $ 4.2.20 68 569--->
grep -r 'kernel$' * | head -n20
arch/hexagon/mm/copy_from_user.S: * User memory copy functions for kernel arch/hexagon/mm/strnlen_user.S: * User string length functions for kernel arch/hexagon/kernel/ * Linker script for Hexagon kernel arch/hexagon/kernel/head.S: call start_kernel arch/hexagon/include/asm/pgalloc.h: * that new address spaces always contain the kernel arch/hexagon/include/asm/pgalloc.h: * Hexagon VM spec has a "monolithic" L1 table for user and kernel arch/alpha/boot/bootp.c: * This file is used for creating a bootp file for the Linux/AXP kernel arch/alpha/boot/main.c: * This file is the bootloader for the Linux/AXP kernel arch/alpha/boot/bootpz.c: * Linux/AXP kernel arch/alpha/boot/bootpz.c: copy area, because there needs to be a buffer area after the kernel arch/alpha/boot/bootpz.c: occur when using the normal START_ADDR of the kernel arch/alpha/boot/head.S: jsr $26,start_kernel arch/alpha/Kconfig: singleprocessor machines. On a singleprocessor machine, the kernel arch/alpha/mm/fault.c: /* Send a sigbus, regardless of whether we were in kernel arch/alpha/kernel/ } :kernel arch/alpha/kernel/ } :kernel arch/alpha/kernel/err_marvel.c: * 1) a uniprocessor kernel arch/alpha/kernel/head.S: jsr $26,start_kernel arch/alpha/kernel/entry.S: beq $0, ret_to_kernel arch/alpha/kernel/entry.S: br ret_to_kernel $ 4.2.20 69 570--->

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s