- 博客(10)
- 资源 (6)
- 收藏
- 关注
转载 grub加载内核
第二节:翻译一篇关于grub加载内核的用法(os开发者会用到这个)原文:http://sig9.com/bochs-grub创建软盘:dd if=/dev/zero bs=512 count =2880 of=floppy.img/sbin/losetup /dev/loop7 floppy.img/sbin/mkfs.ext2 /dev/loop7mount -o loop /dev/loop7
2008-10-30 12:05:00 3105
原创 北大acm 题型分类
北大ACM-题型分类 http://acm.pku.edu.cn/主流算法: 1.搜索 //回溯 2.DP(动态规划) 3.贪心 4.图论 //Dijkstra、最小生成树、网络流 5.数论 //解模线性方程 6.计算几何 //凸壳、同等安置矩
2008-10-29 11:11:00 1305
原创 1001 Exponentiation
DescriptionProblems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the national debt is a taxing experience for many comp
2008-10-28 20:01:00 977
转载 kernel debug by printk and syslogd
首先申明,我还没有试验成功。呵呵 在头文件 中定义了 【8种可用的日志级别字符串】KERN_EMERG 用于紧急事件消息,它们一般是系统崩溃之前提示的消息。KERN_ALERT 用于需要立即采取动作的情况。KERN_CRIT 临界状态,通常涉及严重的硬件或软件操作失败。KERN_ERR 用于报告错误状态;设备驱动程序会经常使用KERN_ERR
2008-10-21 18:42:00 1423
原创 udpclient.c
#include #include #include #include #include #include #include #include #include #include int main(){int sock;struct sockaddr_in server_addr;struct hostent *host;char send_data[1024];host= (struct
2008-10-20 22:26:00 1504
原创 udpserver.c
/* udpserver.c */ #include #include #include #include #include #include #include #include #include int main(){ int sock; int addr_len, bytes_read; char recv_data[1024];
2008-10-20 22:25:00 3107
原创 tcpclient.c
/* tcpclient.c */#include #include #include #include #include #include #include #include #include int main(){ int sock, bytes_recieved; char send_data[1024],recv_data[1024];
2008-10-20 22:24:00 1611
原创 tcpserver.c
/* tcpserver.c */#include #include #include #include #include #include #include #include #include int main(){ int sock, connected, bytes_recieved , true = 1; char send_data [1024]
2008-10-20 22:19:00 4151
原创 另类的结构体赋值语法
再看linux kernel代码的时候发现的东东 static struct inet_protocol tcp_protocol = { handler: tcp_v4_rcv, err_handler: tcp_v4_err, next: IPPROTO_PREVIOUS, protocol: IPPROTO_TCP,
2008-10-20 15:50:00 1231
原创 Linux内核源代码结构
源代码所有在目录:/usr/src/linux (大部分linux发行版本中) arch:包含和硬件体系结构相关的代码,每种平台占一个相应的目录。和32位PC相关的代码存放在i386目录下,其中比较重要的包括kernel(内核核心部分)、mm(内存管理)、math-emu(浮点单元仿真)、lib(硬件相关工具函数)、boot(引导程序)、pci(PCI总线)和power(CPU相关状态)。
2008-10-20 15:03:00 854
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人