/linux/Documentation/filesystems/nfs/ |
H A D | exporting.rst | 7 -------- 10 point. Local applications have a reference-counted hold on suitable 16 server-reboot (among other things, though these tend to be the most 32 ------------- 34 The dcache normally contains a proper prefix of any given filesystem 37 As normal access is by filename this prefix is created naturally and 42 filehandle fragment, there is no automatic creation of a path prefix 47 proper prefix. i.e that are not connected to the root. 48 2. The dcache must be prepared for a newly found (via ->lookup) directory 49 to already have a (non-connected) dentry, and must be able to move [all …]
|
/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 12 len-or-define: 14 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 16 len-or-limit: 17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. 19 pattern: ^[su](8|16|32|64)-(min|max)$ 26 required: [ name, doc, attribute-sets, operations ] [all …]
|
H A D | genetlink-c.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-c.yaml# 5 $schema: https://json-schema.org/draft-07/schema 12 len-or-define: 14 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 16 len-or-limit: 17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. 19 pattern: ^[su](8|16|32|64)-(min|max)$ 26 required: [ name, doc, attribute-sets, operations ] [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 12 len-or-define: 14 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 16 len-or-limit: 17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc. 19 pattern: ^[su](8|16|32|64)-(min|max)$ 26 required: [ name, doc, attribute-sets, operations ] [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 12 len-or-define: 14 pattern: ^[0-9A-Za-z_-]+( - 1)?$ 21 required: [ name, doc, attribute-sets, operations ] 31 enum: [ netlink-raw ] # Trim 32 # Start netlink-raw 34 description: Protocol number to use for netlink-raw [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/ |
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 32 if (info->member != tmp.member) { \ in test_vefify_ao_info() 34 tst, (uint64_t)info->member, (uint64_t)tmp.member); \ in test_vefify_ao_info() 38 if (info->set_current) in test_vefify_ao_info() 40 if (info->set_rnext) in test_vefify_ao_info() 42 if (info->set_counters) { in test_vefify_ao_info() 72 if (ret == -1) { in __setsockopt_checked() 138 -1, 0, 100, 100)) in prepare_defs() 149 del->sndid = 100; in prepare_defs() 150 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/fs/ |
H A D | fs_context.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 51 { "async", SB_SYNCHRONOUS }, 67 fc->sb_flags |= token; in vfs_parse_sb_flag() 68 fc->sb_flags_mask |= token; in vfs_parse_sb_flag() 74 fc->sb_flags &= ~token; in vfs_parse_sb_flag() 75 fc->sb_flags_mask |= token; in vfs_parse_sb_flag() 79 return -ENOPARAM; in vfs_parse_sb_flag() 83 * vfs_parse_fs_param_source - Handle setting "source" via parameter 90 * Returns 0 on success, -ENOPARAM if this is not "source" parameter, and 91 * -EINVAL otherwise. In the event of failure, supplementary error information [all …]
|
/linux/drivers/pci/pcie/ |
H A D | dpc.c | 1 // SPDX-License-Identifier: GPL-2.0 58 cap = (u16 *)&save_state->cap.data[0]; in pci_save_dpc_state() 59 pci_read_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, cap); in pci_save_dpc_state() 74 cap = (u16 *)&save_state->cap.data[0]; in pci_restore_dpc_state() 75 pci_write_config_word(dev, dev->dpc_cap + PCI_EXP_DPC_CTL, *cap); in pci_restore_dpc_state() 85 pci_read_config_word(pdev, pdev->dpc_cap + PCI_EXP_DPC_STATUS, &status); in dpc_completed() 89 if (test_bit(PCI_DPC_RECOVERING, &pdev->priv_flags)) in dpc_completed() 96 * pci_dpc_recovered - whether DPC triggered and has recovered successfully 107 if (!pdev->dpc_cap) in pci_dpc_recovered() 114 host = pci_find_host_bridge(pdev->bus); in pci_dpc_recovered() [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/tools/net/ynl/lib/ |
H A D | nlspec.py | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 37 self.ident_name = self.name.replace('-', '_') 119 value_start = self.yaml.get('value-start', 0) 163 sub-message type 165 is_auto_scalar bool, attr is a variable-size scalar 173 self.is_multi = yaml.get('multi-attr', False) 175 self.sub_type = yaml.get('sub-type') 176 self.byte_order = yaml.get('byte-order') 178 self.display_hint = yaml.get('display-hint') 179 self.sub_message = yaml.get('sub-message') [all …]
|
/linux/tools/net/ynl/ |
H A D | ynl-gen-c.py | 2 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 17 return name.upper().replace('-', '_') 21 return name.lower().replace('-', '_') 26 Turn a string limit like u32-max or s64-min into its numerical value 28 if name[0] == 'u' and name.endswith('-min'): 30 width = int(name[1:-4]) 32 width -= 1 33 value = (1 << width) - 1 34 if name[0] == 's' and name.endswith('-min'): 35 value = -value - 1 [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/mm/ |
H A D | internal.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 19 #include <linux/tracepoint-defs.h> 70 #define FOLIO_PAGES_MAPPED (ENTIRELY_MAPPED - 1) 86 return atomic_read(&folio->_nr_pages_mapped) & FOLIO_PAGES_MAPPED; in folio_nr_pages_mapped() 91 * folio. We cannot rely on folio->swap as there is no guarantee that it has 106 unsigned long mapping = (unsigned long)folio->mapping; in folio_raw_mapping() 119 /* Compare PTEs after pte_clear_soft_dirty(), ignoring the soft-dirty bit. */ 132 * folio_pte_batch - detect a PTE batch for a large folio 151 * soft-dirty bit (with FPB_IGNORE_SOFT_DIRTY). 216 return min(ptep - start_ptep, max_nr); in folio_pte_batch() [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/include/net/ |
H A D | xfrm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 46 MODULE_ALIAS("xfrm-mode-" __stringify(family) "-" __stringify(encap)) 48 MODULE_ALIAS("xfrm-type-" __stringify(family) "-" __stringify(proto)) 50 MODULE_ALIAS("xfrm-offload-" __stringify(family) "-" __stringify(proto)) 53 #define XFRM_INC_STATS(net, field) SNMP_INC_STATS((net)->mib.xfrm_statistics, field) 54 #define XFRM_ADD_STATS(net, field, val) SNMP_ADD_STATS((net)->mib.xfrm_statistics, field, val) 62 ------------------------------------ 65 - policy rule, struct xfrm_policy (=SPD entry) 66 - bundle of transformations, struct dst_entry == struct xfrm_dst (=SA bundle) 67 - 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://01.org/pm-graph 23 # git@github.com:intel/pm-graph 51 # ----------------- LIBRARIES -------------------- 73 print('[%09.3f] %s' % (time.time()-mystarttime, msg)) 81 # ----------------- CLASSES -------------------- 85 # A global, single-instance container used to 107 cgtest = -1 147 prefix = 'test' variable in SystemValues 182 tmstart = 'SUSPEND START %Y%m%d-%H:%M:%S.%f' [all …]
|