This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo mkinitcpio -r "$LINUX_DEV_PATH"/modules_install \ | |
-k "$KERNEL_RELEASE" \ | |
-c "$LINUX_DEV_PATH"/mkinitcpio.conf \ | |
-g "$LINUX_DEV_PATH"/initramfs-linux.img |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
man 2 readlink |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set modeline | |
set modelines=5 | |
set number | |
set ruler | |
set laststatus=2 | |
set statusline=%t "tail of the filename | |
set statusline+=[%{strlen(&fenc)?&fenc:'none'}, "file encoding | |
set statusline+=%{&ff}> "file format | |
set statusline+=%h "help file flag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compile: gcc -Wall -o proc proc-read.c | |
// citation: https://bbs.archlinux.org/viewtopic.php?id=96068 | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define BUFFER_SIZE 1024 | |
void die(char *x){ perror(x); exit(1); }; | |
int main(int argc, char **argv) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printk is defined as a function in: | |
- arch/ia64/kvm/vmm.c, line 84 | |
- kernel/printk/printk.c, line 1677 // This is what we need for kernel module work | |
1677 asmlinkage __visible int printk(const char *fmt, ...) // char * fmt is a member | |
1678 { // of structure va_format ( shown below ) | |
1679 va_list args; | |
1680 int r; | |
1681 | |
1682 #ifdef CONFIG_KGDB_KDB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132: int printk(const char *fmt, ...); | |
167: int printk(const char *s, ...) | |
168: { | |
169: return 0; | |
170: } |