From pytimerfd to linuxfd

Recently I have released Python bindings for the timer file descriptor available in Linux (pytimerfd).

Now I can present the Python package “linuxfd”, which offers Python bindings for the Linux system calls eventfd, signalfd and timerfd. It is available at pypi.python.org and at GitHub:

With “eventfd” it is possible to define counter files that are increased, decreased and reset via read and write operations. As long as the counter is zero, any read operation fails with EAGAIN or blocks. The syscall “signalfd” creates a signal file object which becomes readable when a user-defined set of signals (e.g. SIGINT) are received. Reading a signal file object returns an info structure of the last signal received. If no signals are pending, a read operation either fails with EAGAIN or blocks.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s