In one .PRX (kernel mode) I have something like this:
Code: Select all
void (*myCallback)(void* someparameter);
....
void SomeFunction(void* apointer)
{
// some code here
myCallback(apointer);
// some code here
}
void SetCB(void* cbFunc)
{
myCallback = cbFunc;
}
Code: Select all
void BlahFunction(void* something)
{
// do something here
}
int main(...)
{
// some more code here
SetCB(&BlahFunction);
// some more code here
}
The pointer to the function has been set before the kernel PRX can try to call the usermode PRX the first time, that's for sure.
The usermode PRX also didn't get unloaded while sitting around....
Maybe I just can't call userland stuff from kernelland?
Anyone any idea what I missed?
Pleeeaaase? :)