/linux/Documentation/netlink/ |
H A D | genetlink.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 15 len-or-define: 17 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 19 len-or-limit: 20 # literal int, const name, or limit based on fixed-width type 21 # e.g. u8-min, u16-max, etc. [all …]
|
H A D | genetlink-legacy.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 15 len-or-define: 17 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 19 len-or-limit: 20 # literal int, const name, or limit based on fixed-width type 21 # e.g. u8-min, u16-max, etc. [all …]
|
H A D | netlink-raw.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 3 --- 4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml# 5 $schema: https://json-schema.org/draft-07/schema 11 pattern: ^[0-9a-z-]+$ 12 name-cap: 14 pattern: ^[0-9a-zA-Z-]+$ 18 len-or-define: 20 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 27 required: [ name, doc, attribute-sets, operations ] [all …]
|
/linux/tools/perf/trace/beauty/ |
H A D | open_flags.c | 1 // SPDX-License-Identifier: LGPL-2.1 27 const char *prefix = "O_"; in open__scnprintf_flags() local 31 printed = scnprintf(bf, size, "%s%s", show_prefix ? prefix : "", "RDONLY"); in open__scnprintf_flags() 36 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in open__scnprintf_flags() 42 P_FLAG(ASYNC); in open__scnprintf_flags() 63 …printed += scnprintf(bf + printed, size - printed, "%s%s%s", printed ? "|" : "", show_prefix ? pre… in open__scnprintf_flags() 75 printed += scnprintf(bf + printed, size - printed, "%s%#x", printed ? "|" : "", flags); in open__scnprintf_flags() 82 int flags = arg->val; in syscall_arg__scnprintf_open_flags() 85 arg->mask |= 1 << (arg->idx + 1); /* Mask the mode parm */ in syscall_arg__scnprintf_open_flags() 87 return open__scnprintf_flags(flags, bf, size, arg->show_string_prefix); in syscall_arg__scnprintf_open_flags()
|
/linux/tools/testing/selftests/net/tcp_ao/lib/ |
H A D | aolib.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * TCP-AO selftest library. Provides helpers to unshare network 59 if (n < 0 || n > size - 1) { in test_snprintf() 146 KCONFIG_TCP_MD5, /* optional, for TCP-MD5 features */ 169 extern void __test_init(unsigned int ntests, int family, unsigned int prefix, 175 int family, unsigned int prefix, in test_init2() argument 185 __test_init(ntests, family, prefix, taddr1, taddr2, peer1, peer2); in test_init2() 229 ret.a6.s6_addr32[3] = htonl(n & (BIT(32) - 1)); in gen_tcp_addr() 230 ret.a6.s6_addr32[2] = htonl((n >> 32) & (BIT(32) - 1)); in gen_tcp_addr() 246 out->sin6_family = AF_INET6; in tcp_addr_to_sockaddr_in() [all …]
|
H A D | sock.c | 1 // SPDX-License-Identifier: GPL-2.0 54 return -errno; in __test_wait_fd() 57 return -ETIMEDOUT; in __test_wait_fd() 61 return -errno; in __test_wait_fd() 63 return -ret; in __test_wait_fd() 101 if (ret != -ETIMEDOUT) in __test_skpair_poll() 109 *err = -ETIMEDOUT; in __test_skpair_poll() 110 return -ETIMEDOUT; in __test_skpair_poll() 114 void *addr, size_t addr_sz, bool async) in __test_connect_socket() argument 132 err = -errno; in __test_connect_socket() [all …]
|
/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | key-management.c | 1 // SPDX-License-Identifier: GPL-2.0 23 err = add_vrf("ksft-vrf", test_vrf_tabid, test_vrf_ifindex, -1); in setup_vrfs() 27 err = link_set_up("ksft-vrf"); in setup_vrfs() 66 static int test_del_key(int sk, uint8_t sndid, uint8_t rcvid, bool async, in test_del_key() argument 76 del.prefix = DEFAULT_TEST_PREFIX; in test_del_key() 91 return -errno; in test_del_key() 93 if (async) in test_del_key() 100 return -EEXIST; in test_del_key() 101 if (err != -E2BIG) in test_del_key() 108 return -ENOTRECOVERABLE; in test_del_key() [all …]
|
H A D | bench-lookups.c | 1 // SPDX-License-Identifier: GPL-2.0 34 for (j = i - 1; j > 0 && i > 0; j--) { in gen_test_ips() 36 i--; /* collision */ in gen_test_ips() 52 if (err && err != -EEXIST) in test_add_routes() 64 if (test_add_key(lsk, DEFAULT_TEST_PASSWORD, *p, -1, 100, 100)) in server_apply_keys() 106 nsec = (end.tv_sec - start.tv_sec) * NSEC_PER_SEC; in measure_call() 108 nsec += end.tv_nsec - start.tv_nsec; in measure_call() 110 nsec -= start.tv_nsec - end.tv_nsec; in measure_call() 112 if (st->nr == 0) { in measure_call() 113 st->min = st->max = nsec; in measure_call() [all …]
|
H A D | setsockopt-closed.c | 1 // SPDX-License-Identifier: GPL-2.0 34 if (info->member != tmp.member) { \ in test_vefify_ao_info() 36 tst, (uint64_t)info->member, (uint64_t)tmp.member); \ in test_vefify_ao_info() 40 if (info->set_current) in test_vefify_ao_info() 42 if (info->set_rnext) in test_vefify_ao_info() 44 if (info->set_counters) { in test_vefify_ao_info() 74 if (ret == -1) { in __setsockopt_checked() 140 -1, 0, 100, 100)) in prepare_defs() 151 del->sndid = 100; in prepare_defs() 152 del->rcvid = 100; in prepare_defs() [all …]
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_common.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 11 * iavf_aq_str - convert AQ err code to a string 66 snprintf(hw->err_str, sizeof(hw->err_str), "%d", aq_err); in iavf_aq_str() 67 return hw->err_str; in iavf_aq_str() 71 * iavf_stat_str - convert status err code to a string 214 snprintf(hw->err_str, sizeof(hw->err_str), "%d", stat_err); in iavf_stat_str() 215 return hw->err_str; in iavf_stat_str() 234 if ((!(mask & hw->debug_mask)) || !desc) in iavf_debug_aq() 239 le16_to_cpu(aq_desc->opcode), in iavf_debug_aq() [all …]
|
/linux/Documentation/driver-api/usb/ |
H A D | power-management.rst | 1 .. _usb-power-management: 7 :Date: Last-updated: February 2014 11 --------- 17 * Changing the default idle-delay time 31 ------------------------- 35 component is ``suspended`` it is in a nonfunctional low-power state; it 37 ``resumed`` (returned to a functional full-power state) when the kernel 67 ---------------------- 85 -------------------------- 101 ------------------- [all …]
|
/linux/Documentation/driver-api/firmware/ |
H A D | fallback-mechanisms.rst | 97 important to re-iterate that no device is created if a direct filesystem lookup 113 ----------------------- 114 .. kernel-doc:: drivers/base/firmware_loader/fallback.c 153 * ASYNC=whether or not the API request was asynchronous 171 in non-traditional paths -- paths outside of the listing documented in the 184 the uevent flag means you want to opt-in for the firmware fallback mechanism 196 The logic behind using MAX_JIFFY_OFFSET for non-uevents is that a custom 212 the peripheral's Linux device-driver needs to access this firmware. 222 .. kernel-doc:: include/linux/efi_embedded_fw.h 225 The EFI embedded-fw code works by scanning all EFI_BOOT_SERVICES_CODE memory [all …]
|
/linux/net/ipv4/ |
H A D | tcp_ao.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * INET An implementation of the TCP Authentication Option (TCP-AO). 29 if (crypto_ahash_setkey(crypto_ahash_reqtfm(hp->req), in tcp_ao_calc_traffic_key() 30 mkt->key, mkt->keylen)) in tcp_ao_calc_traffic_key() 33 ret = crypto_ahash_init(hp->req); in tcp_ao_calc_traffic_key() 38 ahash_request_set_crypt(hp->req, &sg, key, len); in tcp_ao_calc_traffic_key() 39 crypto_ahash_update(hp->req); in tcp_ao_calc_traffic_key() 41 ret = crypto_ahash_final(hp->req); in tcp_ao_calc_traffic_key() 60 * >> A TCP-AO implementation MUST default to ignore incoming ICMPv4 in tcp_ao_ignore_icmp() 61 * messages of Type 3 (destination unreachable), Codes 2-4 (protocol in tcp_ao_ignore_icmp() [all …]
|
/linux/drivers/android/ |
H A D | binder.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (C) 2007-2008 Google, Inc. 15 * 1) proc->outer_lock : protects binder_ref 18 * 2) node->lock : protects most fields of binder_node. 21 * 3) proc->inner_lock : protects the thread and node lists 22 * (proc->threads, proc->waiting_threads, proc->nodes) 24 * (proc->todo, thread->todo, proc->delivered_death and 25 * node->async_todo), as well as thread->transaction_stack 35 * foo_olocked() : requires node->outer_lock 36 * foo_nlocked() : requires node->lock [all …]
|
/linux/sound/soc/ |
H A D | soc-dapm.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-dapm.c -- ALSA SoC Dynamic Audio Power Management 12 // o Platform power domain - can support external components i.e. amps and 15 // o Jack insertion power event initiation - e.g. hp insertion will enable 22 #include <linux/async.h> 43 #define DAPM_UPDATE_STAT(widget, val) widget->dapm->card->dapm_stats.val++; 68 /* dapm power sequences - make this per codec in the future */ 153 if (snd_soc_card_is_instantiated(dapm->card)) in dapm_assert_locked() 186 return !list_empty(&w->dirty); in dapm_dirty_widget() 191 dapm_assert_locked(w->dapm); in dapm_mark_dirty() [all …]
|
/linux/drivers/scsi/ |
H A D | scsi_scan.c | 1 // SPDX-License-Identifier: GPL-2.0 23 * If target is SCSI-3 or up, issue a REPORT LUN, and scan 36 #include <linux/async.h> 63 * Prefix values for the SCSI id's (stored in sysfs name field) 92 "last scsi LUN (should be between 1 and 2^64-1)"); 95 #define SCSI_SCAN_TYPE_DEFAULT "async" 104 MODULE_PARM_DESC(scan, "sync, async, manual, or none. " 126 * scsi_enable_async_suspend - Enable async suspend and resume 131 * If a user has disabled async probing a likely reason is due to a in scsi_enable_async_suspend() 132 * storage enclosure that does not inject staggered spin-ups. For in scsi_enable_async_suspend() [all …]
|
/linux/Documentation/filesystems/ |
H A D | vfs.rst | 1 .. SPDX-License-Identifier: GPL-2.0 9 - Copyright (C) 1999 Richard Gooch 10 - Copyright (C) 2005 Pekka Enberg 27 ------------------------------ 32 cache or dcache). This provides a very fast look-up mechanism to 44 ---------------- 64 --------------- 67 structure (this is the kernel-side implementation of file descriptors). 88 .. code-block:: c 99 ->mount() will be attached to the mountpoint, so that when pathname [all …]
|
/linux/tools/net/ynl/pyynl/ |
H A D | ynl_gen_c.py | 2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 21 return name.upper().replace('-', '_') 25 return name.lower().replace('-', '_') 30 Turn a string limit like u32-max or s64-min into its numerical value 32 if name[0] == 'u' and name.endswith('-min'): 34 width = int(name[1:-4]) 36 width -= 1 37 value = (1 << width) - 1 38 if name[0] == 's' and name.endswith('-min'): 39 value = -value - 1 [all …]
|
/linux/mm/ |
H A D | internal.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 20 #include <linux/tracepoint-defs.h> 112 #define FOLIO_PAGES_MAPPED (ENTIRELY_MAPPED - 1) 129 return -1; in folio_nr_pages_mapped() 130 return atomic_read(&folio->_nr_pages_mapped) & FOLIO_PAGES_MAPPED; in folio_nr_pages_mapped() 135 * folio. We cannot rely on folio->swap as there is no guarantee that it has 150 unsigned long mapping = (unsigned long)folio->mapping; in folio_raw_mapping() 156 * This is a file-backed mapping, and is about to be memory mapped - invoke its 177 vma->vm_ops = &vma_dummy_vm_ops; in mmap_file() 189 if (vma->vm_ops && vma->vm_ops->close) { in vma_close() [all …]
|
/linux/include/net/ |
H A D | xfrm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 48 MODULE_ALIAS("xfrm-mode-" __stringify(family) "-" __stringify(encap)) 50 MODULE_ALIAS("xfrm-type-" __stringify(family) "-" __stringify(proto)) 52 MODULE_ALIAS("xfrm-offload-" __stringify(family) "-" __stringify(proto)) 55 #define XFRM_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.xfrm_statistics, field) 56 #define XFRM_ADD_STATS(net, field, val) SNMP_ADD_STATS((net)->mib.xfrm_statistics, field, val) 64 ------------------------------------ 67 - policy rule, struct xfrm_policy (=SPD entry) 68 - bundle of transformations, struct dst_entry == struct xfrm_dst (=SA bundle) 69 - instance of a transformer, struct xfrm_state (=SA) [all …]
|
/linux/drivers/tty/ipwireless/ |
H A D | hardware.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * Copyright (C) 2006-2007 Jiri Kosina 60 timing_stats.read_time += (jiffies - start_time); in end_read_timing() 67 timing_stats.write_time += (jiffies - start_time); in end_write_timing() 74 unsigned long since = jiffies - timing_stats.last_report_time; in report_timing() 83 ": %u us elapsed - read %lu bytes in %u us, wrote %lu bytes in %u us\n", in report_timing() 163 #define HW_VERSION_UNKNOWN -1 258 * a non-zero serial number (indicating the new firmware). Thereafter, 259 * the driver can safely ignore the Timer Recovery re-sends to avoid 260 * out-of-sync problems. [all …]
|
/linux/tools/power/pm-graph/ |
H A D | sleepgraph.py | 2 # SPDX-License-Identifier: GPL-2.0-only 21 # https://www.intel.com/content/www/us/en/developer/topic-technology/open/pm-graph/overview.html 23 # git@github.com:intel/pm-graph 51 # ----------------- LIBRARIES -------------------- 74 print('[%09.3f] %s' % (time.time()-mystarttime, msg)) 82 # ----------------- CLASSES -------------------- 86 # A global, single-instance container used to 108 cgtest = -1 148 prefix = 'test' variable in SystemValues 183 tmstart = 'SUSPEND START %Y%m%d-%H:%M:%S.%f' [all …]
|
/linux/drivers/s390/scsi/ |
H A D | zfcp_fsf.c | 1 // SPDX-License-Identifier: GPL-2.0 35 …"Shuts down FCP devices for FCP channels that report a bit-error count in excess of its threshold … 40 struct zfcp_adapter *adapter = fsf_req->adapter; in zfcp_fsf_request_timeout_handler() 50 fsf_req->timer.function = zfcp_fsf_request_timeout_handler; in zfcp_fsf_start_timer() 51 fsf_req->timer.expires = jiffies + timeout; in zfcp_fsf_start_timer() 52 add_timer(&fsf_req->timer); in zfcp_fsf_start_timer() 57 BUG_ON(!fsf_req->erp_action); in zfcp_fsf_start_erp_timer() 58 fsf_req->timer.function = zfcp_erp_timeout_handler; in zfcp_fsf_start_erp_timer() 59 fsf_req->timer.expires = jiffies + 30 * HZ; in zfcp_fsf_start_erp_timer() 60 add_timer(&fsf_req->timer); in zfcp_fsf_start_erp_timer() [all …]
|
/linux/drivers/s390/block/ |
H A D | dasd_eckd.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 67 * Perform Subsystem Function / Sub-Orders 100 * Out-of-space (OOS) Codes 120 * Size that is reported for large volumes in the old 16-bit no_cyl field 181 unsigned long ep_sys_time; /* Ext Parameter - System Time Stamp */ 233 /* Prefix data for format 0x00 and 0x01 */ 255 unsigned char async:1; member 357 __u8 res2[4]; /* byte 4- 7 */ 360 __u8 res3[22]; /* byte 10-31 */ 370 __u8 res2[4]; /* byte 4- 7 */ [all …]
|
/linux/drivers/usb/storage/ |
H A D | uas.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Copyright Hans de Goede <hdegoede@redhat.com> for Red Hat, Inc. 2013 - 2016 30 #include "uas-detect.h" 49 struct work_struct scan_work; /* for async scanning */ 82 static void uas_log_cmd_state(struct scsi_cmnd *cmnd, const char *prefix, 107 spin_lock_irqsave(&devinfo->lock, flags); in uas_do_work() 109 if (devinfo->resetting) in uas_do_work() 112 for (i = 0; i < devinfo->qdepth; i++) { in uas_do_work() 113 if (!devinfo->cmnd[i]) in uas_do_work() 116 cmnd = devinfo->cmnd[i]; in uas_do_work() [all …]
|