作者march20 ()
看板Programming
标题Re: Linux driver里怎麽fopen()??
时间Sun Oct 1 16:54:48 2006
※ 引述《[email protected] (没什新鲜事)》之铭言:
: 我的usb driver,想要在insmod时开档,把设定值读进去,故driver里,
: 有fopen() & fclose(),compiler时是ok的。但我insmod时,确有错误讯息,
^ compile 才是动词喔!
: 大概是说symbol not found之类。
: 1、请问要怎麽解决这问题
这是标准危险动作, 建议你不要做.
想知道为什麽不建议, 要怎麽处理, 或是你还是想这样做,
请看
http://www.linuxjournal.com/node/8110/print
: 2、还有在driver里面,可用strstr() & sscanf()之类的函数吗?我试过可以
: compiler
^^^^^^^^ compile
应该可以, 我没试过 strstr 或 sscanf, 但 strcmp 是没问题的.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 71.136.250.102
※ 编辑: march20 来自: 71.136.250.102 (10/01 16:55)