Lines Matching +full:chg +full:- +full:int
1 // SPDX-License-Identifier: GPL-2.0-only
3 * gpio-watch - monitor unrequested lines for property changes using the
23 int main(int argc, char **argv) in main()
25 struct gpio_v2_line_info_changed chg; in main() local
28 int fd, i, j, ret; in main()
41 for (i = 0, j = 2; i < argc - 2; i++, j++) { in main()
64 memset(&chg, 0, sizeof(chg)); in main()
65 rd = read(pfd.fd, &chg, sizeof(chg)); in main()
66 if (rd < 0 || rd != sizeof(chg)) { in main()
67 if (rd != sizeof(chg)) in main()
74 switch (chg.event_type) { in main()
91 chg.info.offset, event, (uint64_t)chg.timestamp_ns); in main()