Lines Matching +full:gpio +full:- +full:line
1 .. SPDX-License-Identifier: GPL-2.0
11 gpio-v2-get-lineinfo-watch-ioctl.rst.
16 GPIO_GET_LINEINFO_WATCH_IOCTL - Enable watching a line for changes to its
30 The file descriptor of the GPIO character device returned by `open()`.
34 the ``offset`` set to indicate the line to watch
39 Enable watching a line for changes to its request state and configuration
40 information. Changes to line info include a line being requested, released
44 Watching line info is not generally required, and would typically only be
47 The line info does NOT include the line value.
49 The line must be requested using gpio-get-linehandle-ioctl.rst or
50 gpio-get-lineevent-ioctl.rst to access its value, and the line event can
51 monitor a line for events using gpio-lineevent-data-read.rst.
53 By default all lines are unwatched when the GPIO chip is opened.
57 Once a watch is set, any changes to line info will generate events which can be
59 gpio-lineinfo-changed-read.rst.
61 Adding a watch to a line that is already watched is an error (**EBUSY**).
64 on the same GPIO chip opened with a separate call to `open()`.
71 On success 0 and ``info`` is populated with the current line info.
73 On error -1 and the ``errno`` variable is set appropriately.
74 Common error codes are described in error-codes.rst.