Hi, Im having a little problem using the priocntl syscall, I want to use the 
PC_SETXPARMS and PC_GETXPARMS as commands.


>From the man page of priocntl I get it as I should use is it like this:

[b]priocntl(P_PID, 0, PC_SETXPARMS, "RT", RT_KY_PRI, 10);[/b]

If I want to change the class to real-time and priority to 10 of the calling 
process, but it returns -1, invalid argument, whats wrong here?

Then if I want to pick out the priority, that is 10, from the current process I 
do like:

[b]rtparms_t *p;
priocntl(P_PID, 0, PC_GETXPARMS, "RT", RT_KY_PRI, p);[/b]

is this correct? assuming I get the fist call right.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to