bin神----->传送门<-------unsigned int 0~4294967295 int 2147483648~2147483647 ——10^9unsigned long 0~4294967295long 2147483648~2147483647long long的最大值:92...
分类:
其他好文 时间:
2015-03-20 20:26:19
阅读次数:
135
管理员表CREATE TABLE cqh_privilege( id mediumint unsigned not null auto_increment comment 'id', pri_name varchar(30) not null comment '权限名称', module_name ...
分类:
其他好文 时间:
2015-03-20 18:06:55
阅读次数:
174
//ProtoHead.h 1 #define IP_PROTO 0X0800 2 #define ARP_PROTO 0X0806 3 4 /*以下是以太网协议格式*/ 5 struct ether_header 6 { 7 unsigned char ether_dho...
分类:
其他好文 时间:
2015-03-20 14:09:55
阅读次数:
885
父进程执行wait4,并调用schedule切换到子进程: wait4(child, NULL, 0, NULL); 像其他系统调用一样,wait4()在内核中的入口是sys_wait4(),代码如下:asmlinkage long sys_wait4(pid_t pid,unsigned int * stat_addr, int options, struct rusage * ru...
分类:
系统相关 时间:
2015-03-20 11:02:14
阅读次数:
231
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/44486547
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming
weight).
For example, the 32-bit integer ’11' has binary...
分类:
其他好文 时间:
2015-03-20 09:21:19
阅读次数:
141
父进程fork出子进程: fork经过系统调用,来到了sys_fork,详细过程请参考Linux内核源代码情景分析-系统调用。asmlinkage int sys_fork(struct pt_regs regs)
{
return do_fork(SIGCHLD, regs.esp, ®s, 0);
}int do_fork(unsigned long clone_flags, u...
分类:
系统相关 时间:
2015-03-20 09:21:14
阅读次数:
396
从题目就可以意会到这一节还是关于字符设备的驱动,不过是另一种技巧:中断。这个词一点都不陌生。
一、先来分析今天的重量级函数request_irq(),看看他的函数原型就行了,先不进行深入分析。
int request_irq(unsigned int irq, irq_handler_t handler, unsigned long flags,const char *name, void *...
分类:
其他好文 时间:
2015-03-19 22:05:55
阅读次数:
164
#include
using namespace std;
class A
{
public:
A(){ cout << nInt << endl; };
private:
unsigned int nInt;
};
int main()
{
A a;
A * nA = new A;
if ( nA )
{
cout << "我是对象" << endl;
}
s...
分类:
其他好文 时间:
2015-03-19 18:26:07
阅读次数:
274
题目描述:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), re...
分类:
其他好文 时间:
2015-03-19 17:48:43
阅读次数:
123
void print_data(const char* data, int data_len){ int i, j; unsigned int offset = 0; int total_row = data_len / 16; int left_data_len = dat...
分类:
其他好文 时间:
2015-03-19 17:48:00
阅读次数:
113