Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1312859
  • 博文数量: 107
  • 博客积分: 10155
  • 博客等级: 上将
  • 技术积分: 2166
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-25 16:57
文章分类

全部博文(107)

文章存档

2010年(1)

2009年(1)

2008年(105)

分类: LINUX

2008-11-20 14:51:38

指引朋友们从linux/unix的应用程序渗透到内核看看具体的实现过程
阅读(13458) | 评论(17) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-05-21 14:36:51

socket 创建时要关联一个inode socket绑定地址的时候又要创建一个inode 和unix_socket关联 我理解的是否正确

jazeltq2009-04-27 16:29:06

第一个例子编译通过,但是运行的时候oops:client1:no such file 。。 这是怎么回事?

smallchilli2009-04-14 20:57:21

你很厉害,但是这个地方你搞错了,server_address.sin_port = 9734使用的不是9734端口,如果要用9734端口需要使用server_address.sin_port =htons(9734)才可以.大端小端。。。

chinaunix网友2009-02-20 11:20:30

请问下楼主,从close(fd)调用到sock_close(),这两个函数的参数不一致阿?sock_close()中的file *filp是什么?从哪里传过来的?谢谢!·

hjiaqig2009-02-18 16:27:44

/** * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. * @type: the type of the container struct this is embedded in. * @member: the name of the member within the struct. * */ #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,