Method

GpiodglibLineInfois_used

Declaration

gboolean
gpiodglib_line_info_is_used (
  GpiodglibLineInfo* self
)

Description

Check if the line is in use.

The exact reason a line is busy cannot be determined from user space. It may have been requested by another process or hogged by the kernel. It only matters that the line is used and can’t be requested until released by the existing consumer.

Return value

Type: gboolean

TRUE if the line is in use, FALSE otherwise.