- Your First Loadable Kernel Module - June 26, 2009
- Your First Loadable Kernel, Part 2 - July 1, 2009
- Loadble Kernel Modules, Coming and Going - July 8, 2009
- Everything You Wanted to Know About Module Params- July 15, 2009
- Building and Running a New Kernel - July 22, 2009
- Kernel Symbols: What's Available to Your Module - July 29, 2009
- [What's in That Loadable Module, Anyway? - Augus
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
// gcc x11.c -L/usr/X11R6/lib -lX11 -o x11 | |
#include <X11/Xlib.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
int main(void) { | |
Display *d; | |
Window w; | |
XEvent e; |
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
#include <linux/module.h> | |
#include <linux/kernel.h> | |
#include <linux/timer.h> | |
#include <linux/jiffies.h> | |
static void mykmod_timer_handler(unsigned long data); | |
static unsigned long onesec; | |
DEFINE_TIMER(mytimer, mykmod_timer_handler, 0, 0); |
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
/* | |
* linux/fs/exec.c | |
* | |
* Copyright (C) 1991, 1992 Linus Torvalds | |
*/ | |
/* | |
* #!-checking implemented by tytso. | |
*/ | |
/* |
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 module name from the list: | |
program = sma_usb | |
# 'The list' | |
#---------- | |
obj-m += sma_usb.o | |
# obj-m += sma_chardev.o | |
# obj-m += sma_skeleton.o |
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
all: | |
# ./fasm/fasm boot.asm | |
nasm -f bin boot.asm -o boot.bin | |
run: | |
# bochs | |
qemu-system-x86_64 boot.bin |
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
/* Microchip Technology Inc. and its subsidiaries. You may use this software | |
* and any derivatives exclusively with Microchip products. | |
* | |
* THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER | |
* EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED | |
* WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A | |
* PARTICULAR PURPOSE, OR ITS INTERACTION WITH MICROCHIP PRODUCTS, COMBINATION | |
* WITH ANY OTHER PRODUCTS, OR USE IN ANY APPLICATION. | |
* | |
* IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, |
OSDev.org
Category:Categories |
====================================================================================
= OS_Development ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ |
>= FAQ ▄ Not! >= Troubleshooting ▄ Not!
= Bare_bones_tutorials how to start Category. page for every programming lang! |
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
" Note: Skip initialization for vim-tiny or vim-small. | |
if 0 | endif | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ |
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
int age = 20; | |
int major = 0; | |
major = age >= 18; // this line <<<<<<<<<<<<<<<<<<<<<<< | |
printf(”Major equals : %d\n”, major); |