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

Daniel Drake dsd at laptop.org
Wed Apr 28 08:32:54 EDT 2010


On 26 April 2010 20:21, Martin Langhoff <martin.langhoff at gmail.com> wrote:
> I am porting some awkward patches I have against the old olpc
> initramfs to the new dracut-based, all bling initramfs.
>
> The python part is mostly done, but the fun part is that we're trying
> to set the clock (both system clock and rtc) based on network
> messages.
>
> The general approach in our initramfs when we need some specific calls
> to potent magic hidden (as we often do in our voodoo initramfsen) is
> to unleash The Power of Pyrex. So that's what I plan to do.

I wouldn't have thought pyrex is necessary. I suggest using
fnctl.ioctl() for RTC_SET_TIME, and ctypes for settimeofday().

Daniel



More information about the Devel mailing list