Pyrex experts? Looking to expose settimeofday() and RTC_SET_TIME ioctl()
Martin Langhoff
martin.langhoff at gmail.com
Wed Apr 28 08:59:33 EDT 2010
On Wed, Apr 28, 2010 at 8:32 AM, Daniel Drake <dsd at laptop.org> 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.
cheers,
m
--
martin.langhoff at gmail.com
martin at laptop.org -- School Server Architect
- ask interesting questions
- don't get distracted with shiny stuff - working code first
- http://wiki.laptop.org/go/User:Martinlanghoff
More information about the Devel
mailing list