Home
last modified time | relevance | path

Searched +full:no +full:- +full:can +full:- +full:fd (Results 1 – 25 of 1091) sorted by relevance

12345678910>>...44

/openbmc/linux/Documentation/filesystems/
H A Dinotify.rst1 .. SPDX-License-Identifier: GPL-2.0
4 Inotify - A Powerful yet Simple File Change Notification System
13 - Deleted obsoleted interface, just refer to manpages for user interface.
18 What is the design decision behind not tying the watch to the open fd of
29 What is the design decision behind using an-fd-per-instance as opposed to
30 an fd-per-watch?
33 An fd-per-watch quickly consumes more file descriptors than are allowed,
34 more fd's than are feasible to manage, and more fd's than are optimally
35 select()-able. Yes, root can bump the per-process fd limit and yes, users
36 can use epoll, but requiring both is a silly and extraneous requirement.
[all …]
/openbmc/linux/include/linux/can/
H A Dlength.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020 Marc Kleine-Budde <kernel@pengutronix.de>
11 #include <linux/can.h>
12 #include <linux/can/netlink.h>
16 * Size of a Classical CAN Standard Frame header in bits
19 * ---------------------------------------------------------
26 * FD Format indicator (FDF) 1
34 * Size of a Classical CAN Extended Frame header in bits
37 * ---------------------------------------------------------
46 * FD Format indicator (FDF) 1
[all …]
/openbmc/linux/tools/bpf/bpftool/
H A Dstruct_ops.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
51 t = btf__type_by_id(kern_btf, info->btf_vmlinux_value_type_id); in get_kern_struct_ops_name()
52 st_ops_name = btf__name_by_offset(kern_btf, t->name_off); in get_kern_struct_ops_name()
72 p_err("can't find bpf_map_info from btf_vmlinux"); in get_map_info_type_id()
78 map_info_alloc_len = map_info_type->size; in get_map_info_type_id()
117 * It returns the fd in "*res_fd" and map_info in "*info".
118 * In the very first iteration, info->id should be 0.
119 * An optional map "*name" filter can be specified.
120 * The filter can be made more flexible in the future.
121 * e.g. filter by kernel-struct-ops-name, regex-name, glob-name, ...etc.
[all …]
H A Dcommon.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /* Copyright (C) 2017-2018 Netronome Systems, Inc. */
81 /* Probe whether kernel switched from memlock-based (RLIMIT_MEMLOCK) to
82 * memcg-based memory accounting for BPF maps and programs. This was done in
83 * commit 97306be45fbe ("Merge branch 'switch to memcg-based memory
86 * Libbpf also offers to probe for memcg-based accounting vs rlimit, but does
90 * Instead, we can probe by lowering the process-based rlimit to 0, trying to
92 * memcg-based accounting is supported.
96 * that bpftool is single-threaded, this is fine to do here.
158 "mount --make-private %s failed: %s", in mnt_fs()
[all …]
/openbmc/linux/Documentation/networking/
H A Dcan.rst2 SocketCAN - Controller Area Network
8 The socketcan package is an implementation of CAN protocols
9 (Controller Area Network) for Linux. CAN is a networking technology
11 automotive fields. While there have been other CAN implementations
13 socket API, the Linux network stack and implements the CAN device
14 drivers as network interfaces. The CAN socket API has been designed
16 familiar with network programming, to easily learn how to use CAN
20 .. _socketcan-motivation:
25 There have been CAN implementations for Linux before SocketCAN so the
27 implementations come as a device driver for some CAN hardware, they
[all …]
H A Dphonet.rst1 .. SPDX-License-Identifier: GPL-2.0
9 ------------
12 and RPC. With the Linux Phonet socket family, Linux host processes can
16 Phonet packets can be exchanged through various hardware connections
19 - USB with the CDC Phonet interface,
20 - infrared,
21 - Bluetooth,
22 - an RS232 serial port (with a dedicated "FBUS" line discipline),
23 - the SSI bus with some TI OMAP processors.
27 --------------
[all …]
H A Dtuntap.rst1 .. SPDX-License-Identifier: GPL-2.0
8 Copyright |copy| 1999-2000 Maxim Krasnyansky <max_mk@yahoo.com>
11 Copyright |copy| 1999-2000 Maxim Krasnyansky <max_mk@yahoo.com>
14 Copyright |copy| 1999-2000 Maksim Yevmenkin <m_evmenkin@yahoo.com>
22 It can be seen as a simple Point-to-Point or Ethernet device, which,
40 br_select.c - bridge based on select system call.
41 br_sigio.c - bridge based on async io and SIGIO signal.
56 There's no harm in allowing the device to be accessible by non-root users,
65 Make sure that "Kernel module loader" - module auto-loading
83 -----------------------------
[all …]
/openbmc/qemu/net/
H A Dtap-solaris.c4 * Copyright (c) 2003-2008 Fabrice Bellard
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
42 #include "qemu/error-report.h"
52 return getmsg(tapfd, NULL, &sbuf, &f) >= 0 ? sbuf.len : -1; in tap_read_packet()
57 * Allocate TAP device, returns opened fd.
64 int tap_fd, if_fd, ppa = -1; in tap_alloc()
89 error_setg(errp, "Can't open /dev/ip (actually /dev/udp)"); in tap_alloc()
90 return -1; in tap_alloc()
95 error_setg(errp, "Can't open /dev/tap"); in tap_alloc()
96 return -1; in tap_alloc()
[all …]
H A Dtap.c4 * Copyright (c) 2003-2008 Fabrice Bellard
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
42 #include "qemu/error-report.h"
43 #include "qemu/main-loop.h"
52 int fd; member
68 int fd, Error **errp);
75 qemu_set_fd_handler(s->fd, in tap_update_fd_handler()
76 s->read_poll && s->enabled ? tap_send : NULL, in tap_update_fd_handler()
77 s->write_poll && s->enabled ? tap_writable : NULL, in tap_update_fd_handler()
83 s->read_poll = enable; in tap_read_poll()
[all …]
/openbmc/linux/Documentation/driver-api/mei/
H A Dmei.rst1 .. SPDX-License-Identifier: GPL-2.0
7 resource (Co-processor) residing inside certain Intel chipsets. The Intel ME
18 each client has its own protocol. The protocol is message-based with a
30 The number of instances of an Intel ME feature that can be opened
37 Because some of the Intel ME features can change the system
41 The session is terminated calling :c:expr:`close(fd)`.
46 can use :c:macro:`MEI_CONNECT_CLIENT_IOCTL_VTAG` to create
50 .. code-block:: C
53 fd = open(MEI_DEVICE);
57 ioctl(fd, IOCTL_MEI_CONNECT_CLIENT, &data);
[all …]
/openbmc/qemu/backends/
H A Drng-random.c10 * See the COPYING file in the top-level directory.
14 #include "sysemu/rng-random.h"
18 #include "qemu/main-loop.h"
25 int fd; member
32 * This backend exposes an additional "filename" property that can be used to
40 while (!QSIMPLEQ_EMPTY(&s->parent.requests)) { in entropy_available()
41 RngRequest *req = QSIMPLEQ_FIRST(&s->parent.requests); in entropy_available()
44 len = read(s->fd, req->data, req->size); in entropy_available()
48 g_assert(len != -1); in entropy_available()
50 req->receive_entropy(req->opaque, req->data, len); in entropy_available()
[all …]
/openbmc/linux/tools/spi/
H A Dspidev_test.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Cross-compile with cross-gcc -I/path/to/cross-kernel/include
71 while (length-- > 0) { in hex_dump()
91 * Unescape - process hexadecimal escape character
92 * converts shell input "\x23" -> 0x23
118 static void transfer(int fd, uint8_t const *tx, uint8_t const *rx, size_t len) in transfer() argument
150 ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr); in transfer()
152 pabort("can't send spi message"); in transfer()
175 printf("Usage: %s [-2348CDFHILMNORSZbdilopsv]\n", prog); in print_usage()
177 " -D --device device to use (default /dev/spidev1.1)\n" in print_usage()
[all …]
/openbmc/linux/Documentation/userspace-api/media/v4l/
H A Dstandard.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
20 Applications can use the predefined bits to select a particular
34 band. Enumeration gives a "PAL-B/G" or "PAL-I" choice. Similar a
35 Composite input may collapse standards, enumerating "PAL-B/G/H/I",
36 "NTSC-M" and "SECAM-D/K". [#f1]_
41 *received* standard can be sensed with the
47 :ref:`v4l2_std_id <v4l2-std-id>` type (a standard set), *not* an
55 - incapable of capturing fields or frames at the nominal rate of the
58 - that does not support the video standard formats at all.
66 Applications can make use of the :ref:`input-capabilities` and
[all …]
H A Dvidioc-g-edid.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 VIDIOC_G_EDID - VIDIOC_S_EDID - VIDIOC_SUBDEV_G_EDID - VIDIOC_SUBDEV_S_EDID - Get or set the EDID o…
20 ``int ioctl(int fd, VIDIOC_G_EDID, struct v4l2_edid *argp)``
24 ``int ioctl(int fd, VIDIOC_S_EDID, struct v4l2_edid *argp)``
28 ``int ioctl(int fd, VIDIOC_SUBDEV_G_EDID, struct v4l2_edid *argp)``
32 ``int ioctl(int fd, VIDIOC_SUBDEV_S_EDID, struct v4l2_edid *argp)``
37 ``fd``
46 These ioctls can be used to get or set an EDID associated with an input
47 from a receiver or an output of a transmitter device. They can be used
48 with subdevice nodes (/dev/v4l-subdevX) or with video nodes
[all …]
H A Dvidioc-qbuf.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 VIDIOC_QBUF - VIDIOC_DQBUF - Exchange a buffer with the driver
20 ``int ioctl(int fd, VIDIOC_QBUF, struct v4l2_buffer *argp)``
24 ``int ioctl(int fd, VIDIOC_DQBUF, struct v4l2_buffer *argp)``
29 ``fd``
58 :ref:`multi-planar API <planar-apis>`, the ``m.planes`` field must
59 contain a userspace pointer to a filled-in array of struct
73 multi-planar API is used, ``m.userptr`` and ``length`` members of the
86 ``memory`` field to ``V4L2_MEMORY_DMABUF`` and the ``m.fd`` field to a
87 file descriptor associated with a DMABUF buffer. When the multi-planar
[all …]
H A Dvidioc-streamon.rst1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 VIDIOC_STREAMON - VIDIOC_STREAMOFF - Start or stop streaming I/O
20 ``int ioctl(int fd, VIDIOC_STREAMON, const int *argp)``
24 ``int ioctl(int fd, VIDIOC_STREAMOFF, const int *argp)``
29 ``fd``
43 Capture hardware is disabled and no input buffers are filled (if there
45 has been called. Output hardware is disabled and no video signal is
48 Memory-to-memory devices will not start until ``VIDIOC_STREAMON`` has
60 :ref:`VIDIOC_REQBUFS` and can be restarted
67 calling :ref:`VIDIOC_REQBUFS` and can be restarted
[all …]
/openbmc/linux/Documentation/networking/device_drivers/can/ctu/
H A Dctucanfd-driver.rst1 .. SPDX-License-Identifier: GPL-2.0-or-later
3 CTU CAN FD Driver
9 About CTU CAN FD IP Core
10 ------------------------
12 `CTU CAN FD <https://gitlab.fel.cvut.cz/canbus/ctucanfd_ip_core>`_
19 `Vivado integration <https://gitlab.fel.cvut.cz/canbus/zynq/zynq-can-sja1000-top>`_
20 and Intel Cyclone V 5CSEMA4U23C6 based DE0-Nano-SoC Terasic board
21 `QSys integration <https://gitlab.fel.cvut.cz/canbus/intel-soc-ctucanfd>`_
23 `PCIe integration <https://gitlab.fel.cvut.cz/canbus/pcie-ctucanfd>`_ of the core.
30 The basic functional model of the CTU CAN FD peripheral has been
[all …]
/openbmc/linux/tools/perf/Documentation/
H A Dperf-stat.txt1 perf-stat(1)
5 ----
6 perf-stat - Run a command and gather performance counter statistics
9 --------
11 'perf stat' [-e <EVENT> | --event=EVENT] [-a] <command>
12 'perf stat' [-e <EVENT> | --event=EVENT] [-a] \-- <command> [<options>]
13 'perf stat' [-e <EVENT> | --event=EVENT] [-a] record [-o file] \-- <command> [<options>]
14 'perf stat' report [-i file]
17 -----------
23 -------
[all …]
/openbmc/qemu/net/can/
H A Dcan_socketcan.c2 * CAN c support to connect to the Linux host SocketCAN interfaces
4 * Copyright (c) 2013-2014 Jin Yang
5 * Copyright (c) 2014-2018 Pavel Pisa
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
30 #include "qemu/main-loop.h"
35 #include "qemu/error-report.h"
41 #include <linux/can.h>
42 #include <linux/can/raw.h>
49 #define TYPE_CAN_HOST_SOCKETCAN "can-host-socketcan"
65 int fd; member
[all …]
/openbmc/linux/tools/testing/selftests/mincore/
H A Dmincore_selftest.c1 // SPDX-License-Identifier: GPL-2.0+
46 EXPECT_EQ(-1, retval); in TEST()
51 MAP_SHARED | MAP_ANONYMOUS, -1, 0); in TEST()
56 /* <addr> argument is not page-aligned */ in TEST()
59 EXPECT_EQ(-1, retval); in TEST()
64 retval = mincore(addr, -1, vec); in TEST()
65 EXPECT_EQ(-1, retval); in TEST()
71 EXPECT_EQ(-1, retval); in TEST()
80 * but after accessing it (on-demand allocation).
81 * Then free the page and check that it's not memory-resident.
[all …]
/openbmc/openbmc/poky/meta/lib/patchtest/tests/
H A Dtest_metadata.py5 # SPDX-License-Identifier: GPL-2.0-only
14 # Data store commonly used to share values between pre and post-merge tests
21 self.skip('No added recipes, skipping test')
23 # TODO: this is a workaround so we can parse the recipe not
30 with open(auto_conf, open_flag) as fd:
32 fd.write('LICENSE ??= "%s"\n' % patchtest_patterns.invalid_license)
46 fd = open(auto_conf, 'r')
47 lines = fd.readlines()
48 fd.close()
49 with open(auto_conf, 'w') as fd:
[all …]
/openbmc/linux/arch/um/kernel/
H A Dirq.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2017 - Cambridge Greys Ltd
4 * Copyright (C) 2011 - 2014 Cisco Systems Inc
5 * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
18 #include <as-layout.h>
23 #include <linux/time-internal.h>
27 * we can also have different IRQs for read and write.
28 * This is why we keep a small irq_reg array for each fd -
49 int fd; member
63 * irq->active guards against reentry in irq_io_loop()
[all …]
/openbmc/openbmc/poky/meta/recipes-support/apr/apr/
H A D0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch3 Date: Fri, 26 Aug 2022 00:28:08 -0700
4 Subject: [PATCH] configure: Remove runtime test for mmap that can map
7 This never works for cross-compile moreover it ends up disabling
11 Upstream-Status: Inappropriate [Cross-compile specific]
12 Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 ---
15 configure.in | 30 ------------------------------
16 1 file changed, 30 deletions(-)
18 diff --git a/configure.in b/configure.in
20 --- a/configure.in
[all …]
/openbmc/linux/Documentation/userspace-api/media/rc/
H A Dlirc-get-timeout.rst1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
14 LIRC_GET_MIN_TIMEOUT / LIRC_GET_MAX_TIMEOUT - Obtain the possible timeout
22 ``int ioctl(int fd, LIRC_GET_MIN_TIMEOUT, __u32 *timeout)``
26 ``int ioctl(int fd, LIRC_GET_MAX_TIMEOUT, __u32 *timeout)``
31 ``fd``
40 Some devices have internal timers that can be used to detect when
41 there's no IR activity for a long time. This can help lircd in
42 detecting that a IR signal is finished and can speed up the decoding
44 that can be set.
55 On success 0 is returned, on error -1 and the ``errno`` variable is set
[all …]
/openbmc/linux/tools/usb/
H A Dtestusb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* $(CROSS_COMPILE)cc -Wall -Wextra -g -lpthread -o testusb testusb.c */
12 * kernel driver. It can generate a variety of transfer patterns; you
16 * For more information on how this can be used and on USB testing
17 * refer to <URL:http://www.linux-usb.org/usbtest/>.
36 /*-------------------------------------------------------------------------*/
44 unsigned test_num; /* 0..(TEST_CASES-1) */
55 /*-------------------------------------------------------------------------*/
105 /*-------------------------------------------------------------------------*/
116 case USB_SPEED_SUPER_PLUS: return "super-plus"; in speed()
[all …]

12345678910>>...44