最近学linux模块编程,看到模块中调用了strcpy函数,这是个c库函数,怎么 还能编译通过且加载运行呢?想了很久,还是想不通,有哪位大哥知道?
by greate_2002 - C/C++ - 2005-04-28 10:29:39 阅读(3281) 回复(2)
本人在linux 下 使用CLI函数,GCC编译后出错,错误提示是:undefined reference to '???',//'???'表示一个CLI函数。我写了#include "sqlcli.h".编译要提示库函数吗?我的平台是ECLIPSE
我在<<linux内核源代码情景分析>;>;这有一个 static __inline__ void list_add(struct list_head* new, struct list_head* head) { __list_add(new,head,head->;next); } 我不明白为何要在前面加static __inline__ ,还希望那位大侠指点迷津, 现在这里表示感谢了
by e4gle
在创建线程函数中 pthread_create(pthread *thread,pthread_attr_t *attr,(void *)myfunction,void *myarg); 如果我的myfunction函数要传递2个参数,该怎么传?
[quote] void *page_address(struct page *page) { unsigned long flags; void *ret; struct page_address_slot *pas; if (!PageHighMem(page)) return lowmem_page_address(page); pas = page_slot(page); ret = NULL; spin_lock_irqsave(&pas->lock, flags); if (!list_empty(&pas->lh)) { struct page_address_map *pam; list_for_each_entry(pam, &pas->lh, list) { if (pam->page == page) { ret = p...
我在linux的MAN命令看不到linux内核函数的帮助 如: [root@ls cg]# man printk No manual entry for printk 该如何办 是否添加MANPATH和MANPATH MAP, 如果是,内核函数对应的MANPAH 和MANPATH MAP 该如何写