Thread: [Madwifi-devel] MADWIFI & POSIX , How to apply C functions on MADWIFI driver
Status: Beta
Brought to you by:
otaku
From: Muhammad M. <mu....@gm...> - 2010-04-18 08:23:10
|
Hi there, I'm trying to apply C functions inside madwifi (if_ath.c module), but it didn't work. And as I read, API of the C library in a Unix environment is described by POSIX. So, - Is POSIX standard available on MADWIF ? - if not, how to apply C functions on MADWIFI Regards, -- Muhammad Mustafa |
From: Henrique M. <hen...@gm...> - 2010-04-18 13:50:29
|
I guess you are trying to use user space functions in a kernel module, like printf, for instance, which is not possible. You must use kernel's API, and you can find good documentation in many books, like "linux device drivers", or later on in the source code itself. If the problem is not this, forget about the answer. 2010/4/18 Muhammad Mustafa <mu....@gm...>: > Hi there, > I'm trying to apply C functions inside madwifi (if_ath.c module), but it > didn't work. And as I read, API of the C library in a Unix environment is > described by POSIX. So, > > Is POSIX standard available on MADWIF ? > if not, how to apply C functions on MADWIFI > > Regards, > -- > Muhammad Mustafa > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Madwifi-devel mailing list > Mad...@li... > https://lists.sourceforge.net/lists/listinfo/madwifi-devel > > -- Henrique Marks hen...@gm... http://henrique.dominioespecial.com http://henriquemarks.blogspot.com http://henriquemarks.googlepages.com tel: (82) 3313-8190 cel: (82) 8111-8125 twitter: henriquemarks Em Maceió |
From: Pavel R. <pr...@gn...> - 2010-04-19 14:35:09
|
On Sun, 2010-04-18 at 11:22 +0300, Muhammad Mustafa wrote: > Hi there, > > > I'm trying to apply C functions inside madwifi (if_ath.c module), but > it didn't work. And as I read, API of the C library in a Unix > environment is described by POSIX. That's true, but you cannot use any userspace libraries in the kernel code. > So, > * Is POSIX standard available on MADWIF ? POSIX is not applicable to MadWifi. POSIX defines command line interface, scripting and userspace API. The kernel part of MadWifi doesn't implement any of those. The userspace utilities included with MadWifi use userspace API described by POSIX. The build system of MadWifi relies on features described by POSIX, such as UNIX shell. > * if not, how to apply C functions on MADWIFI MadWifi is full of C functions. Just see the code. -- Regards, Pavel Roskin |