Linux2.6.30内核的socket结构 978计划工作组 2009-11-5 1函数源码 struct socket { socket_state state; short type; unsigned long flags; /* * Please keep fasync_list & wait fields in the same cache line */ struct fasync_struct *fasync_list; wait_queue_head_t wait; struct file *file; ...
by 978计划 - Linux文档专区 - 2009-11-05 16:24:12 阅读(1333) 回复(0)
978计划工作组 2009-11-3 1函数源码 struct rtable { union { struct dst_entry dst; } u; /* Cache lookup keys */ struct flowi fl; struct in_device *idev; int rt_genid; unsigned rt_flags; __u16 rt_type; __be32 rt_dst; /* Path destina...
我有个任务,要把linux2.6.30的内核裁减到130k!! 我裁减了一天, 驱动几乎都没要了,最小还是裁减到1M。。。 请教一下大家,有什么好方法能够把内核裁减到那么小。。。
Linux2.6.30内核的sock结构 978计划工作组 2009-11-18 1函数源码 struct sock { /* * Now struct inet_timewait_sock also uses sock_common, so please just * don't add nothing before this first member (__sk_common) --acme */ struct sock_common __sk_common; #define sk_family __sk_common.skc_family #define sk_state __sk_common.skc_state #define ...
/proc/kallsyms里面有这个系统调用,但是在程序中使用的时候,提示找不到这个符号,这种情况怎么解决?是不是这个版本不提供了?
问题一:
make时出现一些错误,比如函数或变量没有定义等情况,仔细检查发现已经定义。
解决方法:
修改内核顶层的Makefile中的选项,CROSS_COMPILE注意这里的路径要带上,因为在我的主机上还装了其他编辑器。
如果不加上,就可能出现一些莫名其妙的错误。即:CROSS_COMPILE = /usr/local/arm/4.3.2/bin/arm-linux-
问题二:
内核出现:kernel panic-not syncing……
解决方法:
在配置内核时加上支持...
一、环境平台介绍 1、bootloader环境:vivi0.1.4 交叉编译器arm-cross2.95.3 2、内核kernel环境:vivilinux-2.6.30 交叉编译器arm-cross3.4.5-software(软浮点运算) 3、根文件系统工具:busybox-1.9.2 交叉编译器arm-cross3.4.5-software(软浮点运算)(参照上篇s3c2410移植----之使用busybox-1.9.2制作根文件系统) # vi /etc/inittab ::sysinit:/etc/init.d/rcS ttySAC0::askfirst:-/bin/sh ::ctrlaltdel:/sbin/reboot ::...
在linux-2.6.30版本中tty_flip.h extern int tty_buffer_request_room(struct tty_struct *tty, size_t size); extern int tty_insert_flip_string_flags(struct tty_struct *tty, const unsigned char *chars, const char *flags, size_t size); extern int tty_insert_flip_string_fixed_flag(struct tty_struct *tty, const unsigned char *chars, char flag, size_t size); extern int tty_prepare_flip_string(struct tty_str...
在linux-2.6.30版本中tty_flip.h extern int tty_buffer_request_room(struct tty_struct *tty, size_t size); extern int tty_insert_flip_string_flags(struct tty_struct *tty, const unsigned char *chars, const char *flags, size_t size); extern int tty_insert_flip_string_fixed_flag(struct tty_struct *tty, const unsigned char *chars, char flag, size_t size); extern int tty_prepare_flip_string(struct tty_str...