Pyrex experts? Looking to expose settimeofday() and RTC_SET_TIME ioctl()

Martin Langhoff martin.langhoff at
Wed Apr 28 08:59:33 EDT 2010

On Wed, Apr 28, 2010 at 8:32 AM, Daniel Drake <dsd at> wrote:
> I wouldn't have thought pyrex is necessary. I suggest using
> fnctl.ioctl() for RTC_SET_TIME, and ctypes for settimeofday().

Our chvt() is in pyrex, and all it does is call ioctl() on
/dev/console. If there's a better way to call ioctl() then we can get
rid of pyrex in our initramfs completely.

In the meantime, I am following the approach already in use in our
initramfs, and Hal Murray's posted in private a very nice pyrex
wrapper around those two that I plan to test/merge/use today.


 martin.langhoff at
 martin at -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first

More information about the Devel mailing list