/linux/tools/testing/selftests/net/ |
H A D | ip_local_port_range.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 28 static void unpack_port_range(__u32 range, __u16 *lo, __u16 *hi) in unpack_port_range() argument 30 *lo = range & 0xffff; in unpack_port_range() 31 *hi = range >> 16; in unpack_port_range() 42 return -1; in get_so_domain() 71 return -1; in bind_to_loopback_any_port() 91 return -1; in get_sock_port() 100 return -1; in get_sock_port() 104 static int get_ip_local_port_range(int fd, __u32 *range) in get_ip_local_port_range() argument 113 return -1; in get_ip_local_port_range() [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | uffd-common.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2015-2023 Red Hat, Inc. 8 #include "uffd-common.h" 15 int uffd = -1, uffd_flags, finished, *pipefd, test_type; 30 mem_fd = memfd_create("uffd-test", memfd_flags); in uffd_mem_fd_create() 52 MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in anon_allocate_area() 55 return -errno; in anon_allocate_area() 89 return -errno; in hugetlb_allocate_area() 96 return -errno; in hugetlb_allocate_area() 107 close(mem_fd); in hugetlb_allocate_area() [all …]
|
H A D | madv_populate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 66 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_read() 84 ksft_test_result(ret == -1 && errno == EINVAL, in test_prot_write() 110 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 113 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 118 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 121 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 126 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 129 ksft_test_result(ret == -1 && errno == ENOMEM, in test_holes() 142 for (; size > 0 && ret; size -= pagesize, start += pagesize) in range_is_populated() [all …]
|
H A D | gup_longterm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * GUP long-term page pinning tests. 54 * R/W long-term pinning. For these filesystems, we can be fairly sure in fs_is_unknown() 121 /* Fault in the page such that GUP-fast can pin it directly. */ in do_test() 129 * long-term R/O pinning by mapping the page R/O. in do_test() 156 * expected to work. Otherwise, we expect long-term R/W pinning in do_test() 182 * TODO: if the kernel ever supports long-ter in do_test() [all...] |
H A D | vm_util.c | 1 // SPDX-License-Identifier: GPL-2.0 70 static int supported = -1; in pagemap_scan_supported() 73 if (supported != -1) in pagemap_scan_supported() 105 return page_entry_is(fd, start, "soft-dirty", in pagemap_is_softdirty() 125 /* If present (63th bit), PFN is at bit 0 -- 54. */ in pagemap_get_pfn() 128 return -1ul; in pagemap_get_pfn() 140 close(fd); in clear_softdirty() 161 if (fd == -1) in read_pmd_pagesize() 166 close(fd); in read_pmd_pagesize() 170 close(fd); in read_pmd_pagesize() [all …]
|
/linux/tools/testing/selftests/drivers/sdsi/ |
H A D | sdsi_test.py | 2 # SPDX-License-Identifier: GPL-2.0 43 result = subprocess.check_output(('grep', '-q', MODULE_NAME), stdin=lsmod_p.stdout) 45 @pytest.mark.parametrize('socket', range(0, NUM_SOCKETS)) 126 f.close() 133 f.close() 139 # file is none-zero and the same as the value read 147 f.close() 149 @pytest.mark.parametrize('socket', range(0, NUM_SOCKETS)) 163 f.close() 165 @pytest.mark.parametrize('socket', range(0, NUM_SOCKETS)) [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | libv4l-introduction.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 4 .. _libv4l-introduction: 17 :ref:`v4l2grab <v4l2grab-example>`. 28 :ref:`V4L2_PIX_FMT_BGR24 <V4L2-PIX-FMT-BGR24>`, 29 :ref:`V4L2_PIX_FMT_NV12_16L16 <V4L2-PIX-FMT-NV12-16L16>`, 30 :ref:`V4L2_PIX_FMT_JPEG <V4L2-PIX-FMT-JPEG>`, 31 :ref:`V4L2_PIX_FMT_MJPEG <V4L2-PIX-FMT-MJPEG>`, 32 :ref:`V4L2_PIX_FMT_MR97310A <V4L2-PIX-FMT-MR97310A>`, 33 :ref:`V4L2_PIX_FMT_OV511 <V4L2-PIX-FMT-OV511>`, 34 :ref:`V4L2_PIX_FMT_OV518 <V4L2-PIX-FMT-OV518>`, [all …]
|
H A D | vidioc-expbuf.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 13 VIDIOC_EXPBUF - Export a buffer as a DMABUF file descriptor. 45 range from zero to the number of buffers allocated with 48 one. For the multi-planar API, applications set the ``plane`` field to 49 the index of the plane to be exported. Valid planes range from zero to 51 the single-planar API, applications must set ``plane`` to zero. 55 case of multi-planar API, every plane is exported separately using 60 other DMABUF-aware devices. Refer to :ref:`DMABUF importing <dmabuf>` 62 recommended to close a DMABUF file when it is no longer used to allow 68 .. code-block:: c [all …]
|
H A D | ext-ctrls-camera.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _camera-controls: 13 .. _camera-control-id: 23 .. _v4l2-exposure-auto-type: 28 enum v4l2_exposure_auto_type - 37 .. flat-table:: 38 :header-rows: 0 39 :stub-columns: 0 41 * - ``V4L2_EXPOSURE_AUTO`` 42 - Automatic exposure time, automatic iris aperture. [all …]
|
H A D | ext-ctrls-rf-tuner.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _rf-tuner-controls: 16 called Zero-IF tuners. Older tuners were typically simple PLL tuners 28 .. _rf-tuner-control-id: 47 range and step are driver-specific. 64 range and step are driver-specific. 68 signal path. It is located very close to tuner antenna input. Used 71 differs from the each others. The range and step are 72 driver-specific. 76 located inside mixer block, where RF signal is down-converted by the [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_mod_race.c | 1 // SPDX-License-Identifier: GPL-2.0 17 * checks whether btf_try_get_module handles the invocation for a well-formed 71 return -errno; in test_setup_uffd() 76 close(uffd); in test_setup_uffd() 77 return -1; in test_setup_uffd() 80 uffd_register.range.start = (unsigned long)fault_addr; in test_setup_uffd() 81 uffd_register.range.len = 4096; in test_setup_uffd() 84 close(uffd); in test_setup_uffd() 85 return -1; in test_setup_uffd() 99 fault_addr = mmap(0, 4096, PROT_READ, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in test_bpf_mod_race_config() [all …]
|
/linux/drivers/media/platform/st/sti/delta/ |
H A D | delta-ipc.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 * delta_ipc_open - open a decoding instance on firmware side 43 * delta_ipc_set_stream - set information about stream to decoder 48 * within IPC shared buffer range 53 * delta_ipc_decode - frame decoding synchronous request, returns only 59 * within IPC shared buffer range 63 * within IPC shared buffer range. 71 * delta_ipc_close - close decoding instance 72 * @hdl: (in) handle of decoding instance to close.
|
/linux/fs/btrfs/ |
H A D | defrag.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include "disk-io.h" 13 #include "delalloc-space.h" 16 #include "file-item.h" 41 * This value is different for compressed/non-compressed extents, thus 51 if (defrag1->root > defrag2->root) in compare_inode_defrag() 53 else if (defrag1->root < defrag2->root) in compare_inode_defrag() 54 return -1; in compare_inode_defrag() 55 else if (defrag1->ino > defrag2->ino) in compare_inode_defrag() 57 else if (defrag1->ino < defrag2->ino) in compare_inode_defrag() [all …]
|
/linux/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2019-2022 Google LLC 29 int uffd = reader_args->uffd; in uffd_handler_thread_fn() 46 TEST_ASSERT(!epoll_ctl(epollfd, EPOLL_CTL_ADD, reader_args->pipe, &evt), in uffd_handler_thread_fn() 54 r = epoll_wait(epollfd, &evt, 1, -1); in uffd_handler_thread_fn() 64 r = read(reader_args->pipe, &tmp_chr, 1); in uffd_handler_thread_fn() 74 if (r == -1) { in uffd_handler_thread_fn() 86 if (reader_args->delay) in uffd_handler_thread_fn() 87 usleep(reader_args->delay); in uffd_handler_thread_fn() 88 r = reader_args->handler(reader_args->uffd_mode, uffd, &msg); in uffd_handler_thread_fn() [all …]
|
/linux/drivers/rtc/ |
H A D | class.c | 1 // SPDX-License-Identifier: GPL-2.0 21 #include "rtc-core.h" 28 struct timerqueue_head *head = &rtc->timerqueue; in rtc_device_release() 31 mutex_lock(&rtc->ops_lock); in rtc_device_release() 34 mutex_unlock(&rtc->ops_lock); in rtc_device_release() 36 cancel_work_sync(&rtc->irqwork); in rtc_device_release() 38 ida_free(&rtc_ida, rtc->id); in rtc_device_release() 39 mutex_destroy(&rtc->ops_lock); in rtc_device_release() 45 int rtc_hctosys_ret = -ENODEV; 48 * whether it stores the most close value or the value with partial [all …]
|
/linux/Documentation/admin-guide/cifs/ |
H A D | todo.rst | 24 perhaps addition of new optional SMB3.1.1 fsctls to make collapse range 25 and insert range more atomic 34 open/query/close and open/setinfo/close) to reduce the number of 38 significantly reduce redundant opens by using deferred close (with 52 i) Add support for tree connect contexts (see MS-SMB2) a new SMB3.1.1 protocol 62 directly from user space) Add tools to make setting various non-POSIX 64 in smb-info tool). 98 x) Support for additional authentication options (e.g. IAKERB, peer-to-peer 107 See https://bugzilla.samba.org - search on product "CifsVFS" for 109 and xfstest results e.g. https://wiki.samba.org/index.php/Xfstest-results-smb3 [all …]
|
/linux/tools/perf/util/ |
H A D | evlist.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Parts came from builtin-{top,stat,record}.c, see those files for further 26 #include "bpf-event.h" 33 #include "util/bpf-filter.h" 37 #include "util/intel-tpebs.h" 43 #include "parse-events.h" 44 #include <subcmd/parse-option 1893 evlist__reset_weak_group(struct evlist * evsel_list,struct evsel * evsel,bool close) evlist__reset_weak_group() argument 2289 parse_event_enable_time(const char * str,struct event_enable_time * range,bool first) parse_event_enable_time() argument 2304 parse_event_enable_times(const char * str,struct event_enable_time * range) parse_event_enable_times() argument [all...] |
/linux/tools/testing/selftests/mount_setattr/ |
H A D | mount_setattr_test.c | 1 // SPDX-License-Identifier: GPL-2.0 178 return -1; in write_file() 181 close(fd); in write_file() 183 return -1; in write_file() 198 return -1; in create_and_enter_userns() 200 if (write_file("/proc/self/setgroups", "deny", sizeof("deny") - 1) && in create_and_enter_userns() 202 return -1; in create_and_enter_userns() 206 return - in create_and_enter_userns() 1153 map_ids(pid_t pid,unsigned long nsid,unsigned long hostid,unsigned long range) map_ids() argument 1211 get_userns_fd(unsigned long nsid,unsigned long hostid,unsigned long range) get_userns_fd() argument [all...] |
/linux/tools/testing/selftests/tc-testing/ |
H A D | tdc_batch.py | 4 tdc_batch.py - a script to generate TC batch file 14 parser.add_argument("-n", "--number", type=int, 17 "-a", 18 "--handle_start", 21 help="start handle range from (default: 1)") 22 parser.add_argument("-o", "--skip_sw", 25 parser.add_argument("-s", "--share_action", 28 parser.add_argument("-p", "--prio", 32 "-e", 33 "--operation", [all …]
|
/linux/drivers/clk/ |
H A D | clk-tps68470.c | 1 // SPDX-License-Identifier: GPL-2.0 17 #include <linux/clk-provider.h> 26 #define TPS68470_CLK_NAME "tps68470-clk" 41 * frequency range of 3 MHz to 27 MHz by a programmable 43 * available at the HCLK_A or HCLK_B pins are in the range 48 * PLL_REF_CLK should be as close as possible to 100kHz 53 * BOOST should be as close as possible to 2Mhz 56 * BUCK should be as close as possible to 5.2Mhz 80 if (regmap_read(clkdata->regmap, TPS68470_REG_PLLCTL, &val)) in tps68470_clk_is_prepared() 90 regmap_write(clkdata->regmap, TPS68470_REG_CLKCFG1, in tps68470_clk_prepare() [all …]
|
/linux/fs/smb/client/ |
H A D | fs_context.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 241 bool nobrl:1; /* disable sending byte range locks to srv */ 243 bool mand_lock:1; /* send mandatory not posix byte range lock reqs */ 276 /* timeout for deferred close of files in jiffies */ 308 return fc->fs_private; in smb3_fc2context() 316 * max deferred close timeout (jiffies) - 2^30 319 #define SMB3_DEF_DCLOSETIMEO (1 * HZ) /* even 1 sec enough to help eg open/write/close/open/read */
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | power.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2014 Intel Mobile Communications GmbH 5 * Copyright (C) 2015-2017 Intel Deutschland GmbH 13 * enum iwl_ltr_config_flags - masks for LTR config command flags 39 * struct iwl_ltr_config_cmd_v1 - configures the LTR 53 * struct iwl_ltr_config_cmd - configures the LTR 77 * enum iwl_power_flags - masks for power table command flags 79 * receiver and transmitter. '0' - does not allow. 107 * struct iwl_powertable_cmd - legacy power command. Beside old API support this [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | pyperf600.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * program size close to 298k insns and this may 6 * cause BPF_JMP insn out of 16-bit integer range.
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-iio-proximity | 4 Contact: linux-iio@vger.kernel.org 8 considered close to the device. If the value read from the 15 Contact: linux-iio@vger.kernel.org 22 * as3935 (0-31 range)
|
/linux/include/uapi/linux/ |
H A D | blkzoned.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 23 * enum blk_zone_type - Types of zones allowed in a zoned device. 28 * @BLK_ZONE_TYPE_SEQWRITE_PREF: The zone can be written non-sequentially 39 * enum blk_zone_cond - Condition [state] of a zone in a zoned device. 49 * @BLK_ZONE_COND_READONLY: The zone is read-only. 54 * - ZC1: Empty | BLK_ZONE_COND_EMPTY 55 * - ZC2: Implicit Open | BLK_ZONE_COND_IMP_OPEN 56 * - ZC3: Explicit Open | BLK_ZONE_COND_EXP_OPEN 57 * - ZC4: Closed | BLK_ZONE_COND_CLOSED 58 * - ZC5: Full | BLK_ZONE_COND_FULL [all …]
|