[portland] ctypes to call sched_setscheduler advice.

John Hampton pacopablo at pacopablo.com
Mon Mar 16 15:19:54 CET 2009

mgross wrote:
> I know that I'm  trying to do something a bit wrong, but thats ok with
> me.  Anyway, I would like to call sched_setscheduler from python using
> ctypes module.  My question is: is there an easy way to extract the
> struct sched_parm struct from the sched.h header file for use within a
> python program?

I am not aware of one.  If there is, that is definitely a tool that I 
would like.

I've always ended up translating the structures by hand.


More information about the Portland mailing list