| View previous topic :: View next topic |
| Author |
Message |
Phantom8
Joined: 17 Jun 2005 Posts: 30
|
Posted: Thu Mar 09, 2006 1:58 pm Post subject: Kernel & User mode PRXes |
|
|
| I'm trying get the networking working within a PRX module. First, I've implemented it as a kernel mode PRX. Then, I discovered the networking libraries doesn't work properly within a kernel PRX. Afterwards, I change my PRX into a User mode PRX, but this time I discovered many of the normal functions doesn't work, like fdprintf , etc. The strange thing think is my PRX will crash the system even if the fdprintf is linked and not called. But the same fdprintf works fine under kernel mode PRX. Is this normal? |
|
| Back to top |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Fri Mar 10, 2006 3:45 am Post subject: |
|
|
| Yes because fdprintf is a kernel only function, when you are in user space you really should just use the normal libc, i.e. fprintf. Ensure you remove any USE_KERNEL_LIBC=1 lines in your makefile. |
|
| Back to top |
|
 |
Phantom8
Joined: 17 Jun 2005 Posts: 30
|
Posted: Fri Mar 10, 2006 3:03 pm Post subject: |
|
|
| TyRaNiD wrote: | | Yes because fdprintf is a kernel only function, when you are in user space you really should just use the normal libc, i.e. fprintf. Ensure you remove any USE_KERNEL_LIBC=1 lines in your makefile. |
TyRaNiD, thanks a lot for the suggestion. I finally get the user mode PRX with networking function working. |
|
| Back to top |
|
 |
|