|
发表于 2004-7-30 16:32:42
|
显示全部楼层
最初由 sybaselu 发表
是不是类似下面的一样,如果是那我趋向楼主说的!可是我看过源码,好像没有这样的函数指针!
typedef struct file_operation{
int (*seek)(struct inode *, struct file *)
int (*open)(struct inode *, struct file *)
int (*close)(struct inode *, struct file *)
int (*ioctl)(struct inode *, struct file *)
int (*write)(struct inode *, struct file *)
int (*read)(struct inode *, struct file *)
int (*fnasyc)(struct inode *, struct file *)
}
sturct file_operation xxxx={
.open= void_open();
.read= void_read();
.write= void_wirte();
................
}
楼主能否再大胆推测一下applets.h的头文件的作用?
宏函数而已,用来初始化静态的applets数组。也就是说,它的作用是把xxx_main和applets->main挂钩起来,然后在busybox的main里使用applets[]。 |
|