udev-0.1.1.0: libudev bindings
Copyright(c) Sam Truzjan 2013
LicenseBSD3
Maintainerpxqr.sta@gmail.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

System.UDev.Queue

Description

The udev daemon processes events asynchronously. All events which do not have interdependencies run in parallel. This exports the current state of the event processing queue, and the current event sequence numbers from the kernel and the udev daemon.

Synopsis

Documentation

data Queue Source #

Opaque object representing the current event queue in the udev daemon.

type Seqnum = Int Source #

Sequence number of event.

newQueue :: UDev -> IO Queue Source #

Create a new queue.

isActive :: Queue -> IO Bool Source #

Check if udev is active on the system.

isEmpty :: Queue -> IO Bool Source #

Check if udev is currently processing any events.

isFinished Source #

Arguments

:: Queue

udev queue context

-> Seqnum

sequence number

-> IO Bool

if the given sequence number is currently active.

Check if udev is currently processing a given sequence number.

getPending :: Queue -> IO List Source #

Get the first entry of the list of queued events.

sequenceIsFinished Source #

Arguments

:: Queue

udev queue context

-> Seqnum

first event sequence number

-> Seqnum

last event sequence number

-> IO Bool

if any of the sequence numbers in the given range is currently active

Check if udev is currently processing any events in a given sequence number range.

getKernelSeqnum :: Queue -> IO Seqnum Source #

Get the current kernel event sequence number.

getUDevSeqnum :: Queue -> IO Seqnum Source #

Get the last known udev event sequence number.