// SPDX-License-Identifier: GPL-2.0-only /* Counter - example userspace application * * The userspace application opens /dev/counter0, configures the * COUNTER_EVENT_INDEX event channel 0 to gather Count 0 count and Count * 1 count, and prints out the data as it becomes available on the * character device node. * * Copyright (C) 2021 William Breathitt Gray
*/ #include <errno.h> #include <fcntl.h> #include <linux/counter.h> #include <stdio.h> #include <string.h> #include <sys/ioctl.h> #include <unistd.h>
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.