| /freebsd/sys/contrib/device-tree/Bindings/i2c/ |
| H A D | i2c-mux-gpmux.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-mux-gpmux.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Peter Rosin <peda@axentia.se> 16 .-----. .-----. 18 .------------. '-----' '-----' 20 | | .--------+--------' 21 | .------. | .------+ child bus A, on MUX value set to 0 22 | | I2C |-|--| Mux | [all …]
|
| H A D | i2c-mux-gpmux.txt | 6 .-----. .-----. 8 .------------. '-----' '-----' 10 | | .--------+--------' 11 | .------. | .------+ child bus A, on MUX value set to 0 12 | | I2C |-|--| Mux | 13 | '------' | '--+---+ child bus B, on MUX value set to 1 14 | .------. | | '----------+--------+--------. 15 | | MUX- | | | | | | 16 | | Ctrl |-|-----+ .-----. .-----. .-----. 17 | '------' | | dev | | dev | | dev | [all …]
|
| /freebsd/tests/sys/file/ |
| H A D | flock_helper.c | 1 /*- 132 return -1; \ 140 * Test 1 - F_GETLK on unlocked region 159 printf("1 - F_GETLK on unlocked region: "); in test1() 173 * Test 2 - F_SETLK on locked region 206 * write one byte back to the parent to tell it. The in test2() 207 * parent will kill us when its done. in test2() 225 * fcntl should return -1 with errno set to either EACCES or in test2() 228 printf("2 - F_SETLK on locked region: "); in test2() 241 * Test 3 - F_SETLKW on locked region [all …]
|
| /freebsd/sys/fs/pseudofs/ |
| H A D | pseudofs.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2001 Dag-Erling Smørgrav 77 #define PFS_PROCDEP 0x0010 /* process-dependent */ 113 * Called with proc locked 127 * Called with proc locked 139 * Called with proc locked 152 * Called with proc locked 166 * Last-close callback 167 * Called with proc locked [all …]
|
| H A D | pseudofs_vnops.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2001 Dag-Erling Smørgrav 56 KASSERT((pn)->pn_type == pfstype_root || \ 57 (pn)->pn_type == pfstype_dir || \ 58 (pn)->pn_type == pfstype_procdir, \ 59 ("%s(): VDIR vnode refers to non-directory pfs_node", __func__)) 62 KASSERT((pn)->pn_type == pfstype_file, \ 63 ("%s(): VREG vnode refers to non-file pfs_node", __func__)) 66 KASSERT((pn)->pn_type == pfstype_symlink, \ [all …]
|
| /freebsd/contrib/unbound/validator/ |
| H A D | val_anchor.h | 2 * validator/val_anchor.h - validator trust anchor storage. 55 * The tree must be locked, while no other locks (from trustanchors) are held. 56 * And then an anchor searched for. Which can be locked or deleted. Then 61 /** lock on trees. It is locked in order after stubs. */ 65 * dnames are in nsec-like order. A lookup on class, name will return 104 struct trust_anchor* parent; member 144 * Recalculate parent pointers. The caller must hold the lock on the 147 * After the call is complete the parent pointers are updated and an item 148 * just removed is no longer referenced in parent pointers. 161 * @return the trust anchor or NULL if none is found. The anchor is locked [all...] |
| /freebsd/share/man/man4/ |
| H A D | pchtherm.4 | 46 .Bd -literal 56 dev.pchtherm.0.%parent: pci0 61 dev.pchtherm.%parent: 63 .Bl -tag -width ".Va dev.pchtherm.%d.pch_hot_level" 65 Is the read-only value of the current temperature read by the sensor. 68 This will not appear when this feature is disabled and locked down. 82 This will not appear when sensor enable bit is locked down and the value is zero(which will show -5… 85 This will not appear when sensor enable bit is locked down and the value is zero(which will show -5… 95 This value is not appear when this feature is disabled and locked down. 100 All values are read-only. [all …]
|
| /freebsd/share/man/man9/ |
| H A D | namei.9 | 32 .\" - eivind@FreeBSD.org 84 .Bl -tag -width ".Fa segflg" 122 .Bl -tag -width ".Fa segflg" 137 .Bl -tag -width ".Fa segflg" 151 .Bl -tag -width NC_KEEPPOSENTRY 156 Keep the positive-caching entry in cache. 189 function return the parent (directory) vnode, 191 in locked state, unless it is identical to 195 is not locked per se (but may be locked due to 206 function to return the parent (directory) vnode in an unlocked state. [all …]
|
| H A D | VOP_VPTOCNP.9 | 1 .\" -*- nroff -*- 45 .Bl -tag -width buflen 49 The vnode of the parent directory of 63 parent directory looking for a dirent with a matching file number. 70 The vnode should be locked on entry and will still be locked on exit. 71 The parent directory vnode will be unlocked on a successful exit. 76 .Bl -tag -width Er
|
| /freebsd/sys/fs/unionfs/ |
| H A D | union_subr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 1994 Jan-Simon Pendry 11 * Jan-Simon Pendry. 66 #define UNIONFSHASHMASK (NUNIONFSNODECACHE - 1) 122 MPASS(unp->un_dvp != NULL); in unionfs_deferred_rele() 123 vrele(unp->un_dvp); in unionfs_deferred_rele() 127 /* We expect this function to be single-threaded, thus no atomic */ in unionfs_deferred_rele() 138 return (&(unp->un_hashtbl[vfs_hash_index(lookup) & UNIONFSHASHMASK])); in unionfs_get_hashhead() 155 if (unp->un_uppervp == lookup || in unionfs_get_cached_vnode_locked() [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
| H A D | spl_vfs.c | 1 // SPDX-License-Identifier: BSD-2-Clause 3 * Copyright (c) 2006-2007 Pawel Jakub Dawidek <pjd@FreeBSD.org> 53 int locked; in vfs_setmntopt() local 55 if (!(locked = mtx_owned(MNT_MTX(vfsp)))) in vfs_setmntopt() 58 if (vfsp->mnt_opt == NULL) { in vfs_setmntopt() 62 opts = malloc(sizeof (*vfsp->mnt_opt), M_MOUNT, M_WAITOK); in vfs_setmntopt() 64 if (vfsp->mnt_opt == NULL) { in vfs_setmntopt() 65 vfsp->mnt_opt = opts; in vfs_setmntopt() 66 TAILQ_INIT(vfsp->mnt_opt); in vfs_setmntopt() 76 opt->name = malloc(namesize, M_MOUNT, M_WAITOK); in vfs_setmntopt() [all …]
|
| /freebsd/sys/netsmb/ |
| H A D | smb_conn.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2000-2001 Boris Popov 92 SMBERROR("%d connections still active\n", smb_vclist.co_usecount - 1); in smb_sm_done() 129 vcspec->shspec = shspec; in smb_sm_lookupint() 138 if ((vcp->obj.co_flags & SMBV_PRIVATE) || in smb_sm_lookupint() 139 !CONNADDREQ(vcp->vc_paddr, vcspec->sap) || in smb_sm_lookupint() 140 strcmp(vcp->vc_username, vcspec->username) != 0) in smb_sm_lookupint() 142 if (vcspec->owner != SMBM_ANY_OWNER) { in smb_sm_lookupint() 143 if (vcp->vc_uid != vcspec->owner) in smb_sm_lookupint() [all …]
|
| /freebsd/sys/kern/ |
| H A D | subr_witness.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 45 * Pronunciation: 'wit-n&s 59 * life -- Pilot> 79 * a sleepable lock because it is a non-sleepable lock and non-sleepable 162 #define WITNESS_PARENT 0x01 /* Parent, aka direct ancestor. */ 189 * are held in a per-cpu list while sleep locks are held in per-thread list. 205 * when we traverse the list we read children[count-1] as the first entry 294 return ((w1->w_class->lc_flags & (LC_SLEEPLOCK | LC_SPINLOCK)) == in witness_lock_type_equal() 295 (w2->w_class->lc_flags & (LC_SLEEPLOCK | LC_SPINLOCK))); in witness_lock_type_equal() [all …]
|
| /freebsd/lib/libthr/thread/ |
| H A D | thr_create.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 43 #include "un-namespace.h" 68 int i, cpusetsize, create_suspended, locked, old_stack_prot, ret; in _pthread_create() local 90 new_thread->attr = _pthread_attr_default; in _pthread_create() 92 new_thread->attr = *(*attr); in _pthread_create() 93 cpusetp = new_thread->attr.cpuset; in _pthread_create() 94 cpusetsize = new_thread->attr.cpusetsize; in _pthread_create() 95 new_thread->attr.cpuset = NULL; in _pthread_create() 96 new_thread->attr.cpusetsize = 0; in _pthread_create() [all …]
|
| /freebsd/lib/libutil/tests/ |
| H A D | pidfile_test.c | 1 /*- 2 * Copyright (c) 2007-2009 Dag-Erling Smørgrav 67 return ("pidfile exists and is locked"); in test_pidfile_uncontested() 94 return ("pidfile exists and is locked"); in test_pidfile_self() 141 return ("pidfile exists and is locked"); in common_test_pidfile_child() 147 if (pid == -1) in common_test_pidfile_child() 156 return ("pidfile exists and is locked"); in common_test_pidfile_child() 171 if (kq == -1) in common_test_pidfile_child() 177 /* Inform the parent we are ready to receive SIGINT */ in common_test_pidfile_child() 185 // parent in common_test_pidfile_child() [all …]
|
| /freebsd/lib/libsys/ |
| H A D | flock.2 | 87 Requesting a lock on an object that is already locked 108 forks and the child explicitly unlocks the file, the parent will 121 If a file is locked by a process through 123 any record within the file will be seen as locked 132 .Rv -std flock 137 .Bl -tag -width Er 139 The file is locked and the
|
| /freebsd/contrib/sendmail/libsmutil/ |
| H A D | t-lockfile.c | 12 SM_IDSTR(id, "@(#)$Id: t-lockfile.c,v 1.2 2013-11-22 20:51:50 ca Exp $") 25 ** OPENFILE -- open a file 28 ** owner -- create file? 29 ** filename -- name of file. 30 ** flags -- flags for open(2) 52 return -1; 56 ** WRBUF -- write iobuf to fd 59 ** fd -- file descriptor. 83 ** RDBUF -- read from fd 86 ** fd -- file descriptor. [all …]
|
| /freebsd/sys/dev/iommu/ |
| H A D | busdma_iommu.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 68 * IOMMU units from Intel VT-d. 148 "iommu_get_requester(%s): NULL parent for %s\n", in iommu_get_requester() 158 "iommu_get_requester(%s): non-pci parent %s for %s\n", in iommu_get_requester() 180 * The parent of our "bridge" isn't another PCI bus, in iommu_get_requester() 181 * so pcib isn't a PCI->PCI bridge but rather a host in iommu_get_requester() 194 * unlikely) to have a PCI->PCIe bridge in iommu_get_requester() 228 * PCIe->PCI bridge. Assume that the in iommu_get_requester() 234 * the bridge is PCIe->PCI-X, and the in iommu_get_requester() [all …]
|
| /freebsd/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_fs_core.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 340 refcount_set(&node->refcount, 1); in tree_init_node() 341 INIT_LIST_HEAD(&node->list); in tree_init_node() 342 INIT_LIST_HEAD(&node->children); in tree_init_node() 343 init_rwsem(&node->lock); in tree_init_node() 344 node->del_hw_func = del_hw_func; in tree_init_node() 345 node->del_sw_func = del_sw_func; in tree_init_node() 346 node->active = false; in tree_init_node() 349 static void tree_add_node(struct fs_node *node, struct fs_node *parent) in tree_add_node() argument [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/clock/ti/ |
| H A D | apll.txt | 4 register-mapped APLL with usually two selectable input clocks 5 (reference clock and bypass clock), with analog phase locked 8 modes (locked, low power stop etc.) APLL mostly behaves like 11 [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 15 - compatible : shall be "ti,dra7-apll-clock" or "ti,omap2-apll-clock" 16 - #clock-cells : from common clock binding; shall be set to 0. 17 - clocks : link phandles of parent clocks (clk-ref and clk-bypass) 18 - reg : address and length of the register set for controlling the APLL. 20 "control" - contains the control register offset 21 "idlest" - contains the idlest register offset [all …]
|
| H A D | dpll.txt | 4 register-mapped DPLL with usually two selectable input clocks 5 (reference clock and bypass clock), with digital phase locked 8 modes (locked, low power stop etc.) This binding has several 9 sub-types, which effectively result in slightly different setup 12 [1] Documentation/devicetree/bindings/clock/clock-bindings.txt 15 - compatible : shall be one of: 16 "ti,omap3-dpll-clock", 17 "ti,omap3-dpll-core-clock", 18 "ti,omap3-dpll-per-clock", 19 "ti,omap3-dpll-per-j-type-clock", [all …]
|
| /freebsd/sys/dev/usb/ |
| H A D | usb_bus.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2019 Hans Petter Selasky. All rights reserved. 57 #define USB_BUS_GIANT_PROC(bus) (&(bus)->giant_callback_proc) 58 #define USB_BUS_NON_GIANT_ISOC_PROC(bus) (&(bus)->non_giant_isoc_callback_proc) 59 #define USB_BUS_NON_GIANT_BULK_PROC(bus) (&(bus)->non_giant_bulk_callback_proc) 60 #define USB_BUS_EXPLORE_PROC(bus) (&(bus)->explore_proc) 61 #define USB_BUS_CONTROL_XFER_PROC(bus) (&(bus)->control_xfer_proc) 63 * There are three callback processes. One for Giant locked 64 * callbacks. One for non-Giant locked non-periodic callbacks [all …]
|
| /freebsd/sys/fs/tmpfs/ |
| H A D | tmpfs_subr.c | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 85 int tmpfs_pager_type = -1; 123 if (vp == NULL || vp->v_object == NULL) { in tmpfs_pager_writecount_recalc() 124 KASSERT((object->flags & OBJ_TMPFS_VREF) == 0, in tmpfs_pager_writecount_recalc() 132 VNASSERT((object->flags & OBJ_TMPFS_VREF) == 0, vp, in tmpfs_pager_writecount_recalc() 134 VNPASS(vp->v_usecount > 0, vp); in tmpfs_pager_writecount_recalc() 136 VNASSERT((object->flags & OBJ_TMPFS_VREF) != 0, vp, in tmpfs_pager_writecount_recalc() 151 if ((object->flags & OBJ_TMPFS_VREF) == 0) { in tmpfs_pager_writecount_recalc() 167 KASSERT((object->flags & OBJ_ANON) == 0, in tmpfs_pager_update_writecount() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_mutex.h | 1 //===-- sanitizer_mutex.h ---------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 63 // Semaphore provides an OS-dependent way to park/unpark threads. 65 // (destruction-safety). 89 MutexUnchecked = -1, 91 // The leaf mutexes can be locked under any other non-leaf mutex, 92 // but no other mutex can be locked while under a leaf mutex. 93 MutexLeaf = -1, [all …]
|
| /freebsd/sys/contrib/openzfs/cmd/zed/ |
| H A D | zed.c | 1 // SPDX-License-Identifier: CDDL-1.0 5 * Developed at Lawrence Livermore National Laboratory (LLNL-CODE-403049). 6 * Copyright (C) 2013-2014 Lawrence Livermore National Security, LLC. 10 * Common Development and Distribution License Version 1.0 (CDDL-1.0). 11 * You can obtain a copy of the license from the top-level file 12 * "OPENSOLARIS.LICENSE" or at <http://opensource.org/licenses/CDDL-1.0>. 89 * Access to locked pages will never be delayed by a page fault. 106 zed_log_msg(LOG_INFO, "Locked all pages in memory"); in _lock_memory() 122 * The parent process will block here until _finish_daemonize() is called 123 * (in the grandchild process), at which point the parent process will exit. [all …]
|