/freebsd/lib/libsys/ |
H A D | mmap.2 | 33 .Nd allocate memory, or map files or devices into memory 47 bytes to be mapped from the object described by 53 is not a multiple of the page size, the mapped region may extend past the 55 Any such extension beyond the end of the mapped object will be zero-filled. 59 references a regular file or a shared memory object, the range of 79 The virtual memory subsystem does not impose any restrictions on the 85 is non-zero, it is used as a hint to the system. 102 .Bl -tag -width PROT_WRITE -compact 131 argument specifies the type of the mapped object, mapping options and 132 whether modifications made to the mapped copy of the page are private [all …]
|
H A D | mlockall.2 | 49 system call locks into memory the physical pages associated with the 55 .Bl -tag -width ".Dv MCL_CURRENT" 57 Lock all pages currently mapped into the process's address space. 59 Lock all pages mapped into the process's address space in the future, 65 Since physical memory is a potentially scarce resource, processes are 67 A single process can lock the minimum of a system-wide 71 and the per-process 77 is set to 0 these calls are only available to the super-user. 80 is set to 1 the per-process 88 call unlocks any locked memory regions in the process address space. [all …]
|
/freebsd/share/man/man4/ |
H A D | proto.4 | 38 .Bd -ragged -offset indent 45 .Bd -literal -offset indent 51 .Bd -ragged -offset indent 62 Programs can open these device special files and perform register-level 72 Especially hardware diagnostics requires a somewhat user-friendly interface 111 .Bd -literal 117 .Ss Memory mapped I/O resources 118 The device special files created for memory mapped I/O resources behave 120 Additionally, device special files for memory mapped I/O resources allow 121 the memory to be mapped into the process' address space using [all …]
|
H A D | ahc.4 | 37 .Bd -ragged -offset indent 48 .Bd -literal -offset indent 64 .Tn SCSI-Select 72 For systems that store non-volatile settings in a system specific manner 78 many chip-down motherboard configurations. 88 .Bd -ragged -offset indent 89 .Bl -column "aic7895CX" "MIPSX" "PCI/64X" "MaxSyncX" "MaxWidthX" "SCBsX" "2 3 4 5 6 7 8X" 106 .Bl -enum -compact 108 Multiplexed Twin Channel Device - One controller servicing two busses. 110 Multi-function Twin Channel Device - Two controllers on one chip. [all …]
|
/freebsd/share/doc/papers/newvm/ |
H A D | a.t | 31 Appendix A \- Virtual Memory Interface 36 by allowing pages to be mapped into memory. These mapped 42 /* protections are chosen from these bits, or-ed together */ 51 #define MAP_FILE 0x0001 /* mapped from a file or device */ 52 #define MAP_ANON 0x0002 /* allocated from memory, swap space */ 68 The cpu-dependent size of a page is returned by the 81 for at most \fIlen\fP bytes to be mapped from the object represented by 88 The actual amount mapped is returned in \fIlen\fP. 94 of the mapped pages. 96 the type of object to be mapped, [all …]
|
H A D | 1.t | 29 Motivations for a New Virtual Memory System 31 The virtual memory system distributed with Berkeley UNIX has served 38 be taken into account in a new virtual memory design. 40 Implementation of 4.3BSD virtual memory 43 have used the same virtual memory design. 53 Thus, the limit to available virtual memory is established by the 56 Memory pages are used in a sort of shell game to contain the 68 Design assumptions for 4.3BSD virtual memory 70 The design criteria for the current virtual memory implementation 72 At that time the cost of memory was about a thousand times greater per [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/display/ |
H A D | st,stih4xx.txt | 3 - sti-vtg: video timing generator 5 - compatible: "st,vtg" 6 - reg: Physical base address of the IP registers and length of memory mapped region. 8 - interrupts : VTG interrupt number to the CPU. 9 - st,slave: phandle on a slave vtg 11 - sti-vtac: video timing advanced inter dye communication Rx and TX 13 - compatible: "st,vtac-main" or "st,vtac-aux" 14 - reg: Physical base address of the IP registers and length of memory mapped region. 15 - clocks: from common clock binding: handle hardware IP needed clocks, the 17 See ../clocks/clock-bindings.txt for details. [all …]
|
/freebsd/share/doc/psd/05.sysman/ |
H A D | 1.2.t | 28 .sh "Memory management\(dg 37 Each process begins execution with three logical areas of memory 39 The text area is read-only and shared, while the data and stack 60 by allowing pages to be mapped into memory. These mapped 66 /* protections are chosen from these bits, or-ed together */ 75 #define MAP_FILE 0x0001 /* mapped from a file or device */ 76 #define MAP_ANON 0x0002 /* allocated from memory, swap space */ 93 The cpu-dependent size of a page is returned by the 106 for at most \fIlen\fP bytes to be mapped from the object represented by 113 The actual amount mapped is returned in \fIlen\fP. [all …]
|
/freebsd/share/man/man9/ |
H A D | shm_map.9 | 32 .Nd "map shared memory objects into the kernel's address space" 45 functions provide an API for mapping shared memory objects into the kernel. 46 Shared memory objects are created by 50 A shared memory object cannot be shrunk while it is mapped into the kernel. 53 Shared memory objects can still be grown while mapped into the kernel. 56 callers of this API are required to unmap the entire region mapped by 64 function locates the shared memory object associated with the open file 74 All pages for the range will be wired into memory upon successful return. 78 function unmaps a region previously mapped by 105 The following function accepts a file descriptor for a shared memory [all …]
|
H A D | bhnd_erom.9 | 1 .\" Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 159 .Bd -literal 206 The registers can be mapped using 228 to fetch each driver's erom class and probe the hardware core mapped by 257 Clients can manage the allocation of memory themselves with 265 set to a pointer to the memory for the instance, and the total available bytes 297 The memory allocated for the table must be freed using 302 function frees any memory allocated in a previous call to 320 fetching the base address and size of the memory region 322 mapped to the port [all …]
|
/freebsd/contrib/processor-trace/libipt/internal/include/ |
H A D | pt_section.h | 2 * Copyright (c) 2013-2019, Intel Corporation 39 #include "intel-pt.h" 44 /* A section of contiguous memory loaded from a file. */ 57 /* A pointer to OS-specific file status for detecting changes. 61 * is owned by the OS-specific mmap-based section implementation. 65 /* A pointer to implementation-specific mapping information - NULL if 66 * the section is currently not mapped. 98 /* A pointer to the unmap function - NULL if the section is currently 99 * not mapped. 106 /* A pointer to the read function - NULL if the section is currently [all …]
|
H A D | pt_mapped_section.h | 2 * Copyright (c) 2014-2019, Intel Corporation 32 #include "intel-pt.h" 38 /* A section mapped into memory. */ 40 /* The section that is mapped. */ 43 /* The address space into which the section is mapped. */ 46 /* The virtual address at which the section is mapped. */ 58 * This is normally @section->size but when @section is split, this is 59 * used to determine the size of the sub-section. 73 msec->section = section; in pt_msec_init() 74 msec->vaddr = vaddr; in pt_msec_init() [all …]
|
/freebsd/sys/dev/liquidio/base/ |
H A D | lio_mem_ops.h | 36 * \brief Host Driver: Routines used to read/write Octeon memory. 43 * Read a 64-bit value from a BAR1 mapped core memory address. 44 * @param oct - pointer to the octeon device. 45 * @param core_addr - the address to read from. 48 * in which core_addr is mapped. 50 * @return 64-bit value read from Core memory 56 * Read a 32-bit value from a BAR1 mapped core memory address. 57 * @param oct - pointer to the octeon device. 58 * @param core_addr - the address to read from. 60 * @return 32-bit value read from Core memory [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/API/ |
H A D | SBMemoryRegionInfo.h | 1 //===-- SBMemoryRegionInfo.h ------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 24 uint32_t permissions, bool mapped, 34 /// Get the base address of this memory range. 37 /// The base address of this memory range. 40 /// Get the end address of this memory range. 43 /// The base address of this memory range. 46 /// Check if this memory address is marked readable to the process. 49 /// true if this memory address is marked readable [all …]
|
/freebsd/contrib/processor-trace/libipt/internal/include/posix/ |
H A D | pt_section_posix.h | 2 * Copyright (c) 2015-2019, Intel Corporation 38 /* Fstat-based file status. */ 44 /* MMAP-based section mapping information. */ 49 /* The mapped memory size. */ 52 /* The begin and end of the mapped memory. */ 62 * Returns -pte_internal if @section or @file are NULL. 63 * Returns -pte_invalid if @section can't be mapped. 72 * Returns -pte_internal if @section is NULL. 73 * Returns -pte_internal if @section has not been mapped. 77 /* Read memory from an mmaped section. [all …]
|
/freebsd/usr.bin/vmstat/ |
H A D | vmstat.8 | 33 .Nd report virtual memory statistics 37 .Op Fl -libxo 54 utility reports certain kernel statistics kept about process, virtual memory, 68 .Bl -tag -width indent 69 .It Fl -libxo 97 system calls since system startup, and the number of pages of virtual memory 100 Changes memory columns into more easily human readable form. 104 Changes memory columns into straight numbers. 122 Report on the usage of kernel dynamic memory allocated using 128 Display a list of virtual memory objects in the system and the resident [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/net/ |
H A D | mdio-mux-mmioreg.txt | 1 Properties for an MDIO bus multiplexer controlled by a memory-mapped device 3 This is a special case of a MDIO bus multiplexer. A memory-mapped device, 4 like an FPGA, is used to control which child bus is connected. The mdio-mux 5 node must be a child of the memory-mapped device. The driver currently only 6 supports devices with 8, 16 or 32-bit registers. 10 - compatible : string, must contain "mdio-mux-mmioreg" 12 - reg : integer, contains the offset of the register that controls the bus 16 - mux-mask : integer, contains an eight-bit mask that specifies which 18 'reg' property of each child mdio-mux node must be constrained by 23 The FPGA node defines a memory-mapped FPGA with a register space of 0x30 bytes. [all …]
|
H A D | mdio-mux-mmioreg.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/net/mdio-mux-mmioreg.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Properties for an MDIO bus multiplexer controlled by a memory-mapped device 10 - Andrew Lunn <andrew@lunn.ch> 13 This is a special case of a MDIO bus multiplexer. A memory-mapped device, 14 like an FPGA, is used to control which child bus is connected. The mdio-mux 15 node must be a child of the memory-mapped device. The driver currently only 16 supports devices with 8, 16 or 32-bit registers. [all …]
|
/freebsd/sys/contrib/xen/ |
H A D | memory.h | 2 * memory.h 4 * Memory reservation and information. 34 * Increase or decrease the specified domain's memory reservation. Returns the 45 * devices often have a 32-bit limitation even in 64-bit systems). If zero 53 #define XENMEMF_get_node(x) ((((x) >> 8) - 1) & 0xffu) 54 /* Flag to populate physmap with populate-on-demand entries */ 71 * IN: GPFN bases of extents to populate with memory 100 * An atomic exchange of memory pages. If return code is zero then 101 * @out.extent_list provides GMFNs of the newly-allocated memory. 111 * [IN] Details of memory extents to be exchanged (GMFN bases). [all …]
|
/freebsd/contrib/processor-trace/libipt/internal/include/windows/ |
H A D | pt_section_windows.h | 2 * Copyright (c) 2015-2019, Intel Corporation 39 /* Fstat-based file status. */ 45 /* FileView-based section mapping information. */ 56 /* The begin and end of the mapped memory. */ 68 * Returns -pte_internal if @section is NULL. 69 * Returns -pte_invalid if @section can't be mapped. 77 * This function should not be called directly; call @section->unmap() instead. 80 * Returns -pte_internal if @section is NULL. 81 * Returns -pte_internal if @section has not been mapped. 85 /* Read memory from an mmaped section. [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/io/ |
H A D | mmap.ksh | 1 #! /bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 33 # Verify memory mapped IO with mmap(2) and memcpy(3) 41 if ! compare_version_gte "$(fio --version)" "fio-2.3"; then 42 log_unsupported "Requires fio-2.3 or newer" 49 log_must rm -f "$mntpnt/rw*" 52 log_assert "Verify memory mapped IO with mmap(2) and memcpy(3)" 56 ioengine="--ioengine=mmap" 58 dir="--directory=$mntpnt" [all …]
|
/freebsd/contrib/libdiff/include/ |
H A D | diff_main.h | 24 #define DIFF_RC_USE_DIFF_ALGO_FALLBACK -1 31 off_t pos; /* set whether memory-mapped or not */ 32 const uint8_t *at; /* only set if memory-mapped */ 48 * Set cmp to -1, 0, or 1, just like strcmp(). */ 60 ((ATOM) && ((ATOM) >= (DIFF_DATA)->root->atoms.head) \ 61 ? (unsigned int)((ATOM) - ((DIFF_DATA)->root->atoms.head)) \ 62 : (DIFF_DATA)->root->atoms.len) 67 ((ATOM) && ((ATOM) >= (DIFF_DATA)->atoms.head) \ 68 ? (unsigned int)((ATOM) - ((DIFF_DATA)->atoms.head)) \ 69 : (DIFF_DATA)->atoms.len) [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_allocator_primary64.h | 1 //===-- sanitizer_allocator_primary64.h -------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 18 // SizeClassAllocator64 -- allocator for 64-bit address space. 25 // At the beginning the entire space is mprotect-ed, then small parts of it 26 // are mapped on demand. 31 // UserChunk: a piece of memory returned to user. 34 // FreeArray is an array free-d chunks (stored as 4-byte offsets) 73 released_bytes_ += to_page - from_page; in ReleasePageRangeToOS() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/pci/ |
H A D | snps,dw-pcie-ep.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/pci/snps,dw-pcie-ep.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jingoo Han <jingoohan1@gmail.com> 11 - Gustavo Pimentel <gustavo.pimentel@synopsys.com> 16 # Please create a separate DT-schema for your DWC PCIe Endpoint controller 17 # and make sure it's assigned with the vendor-specific compatible string. 21 const: snps,dw-pcie-ep 23 - compatible [all …]
|
/freebsd/sys/xen/ |
H A D | gntdev.h | 1 /*- 32 * Allocate a page of our own memory, and share it with a foreign domain. 34 * Map a grant allocated by a foreign domain, into our own memory. 41 * - `domid`, as the domain-id of the foreign domain 42 * - `flags`, ORed with GNTDEV_ALLOC_FLAG_WRITABLE if you want the foreign 43 * domain to have write access to the shared memory 44 * - `count`, with the number of pages to share with the foreign domain 46 * Ensure that the structure you allocate has enough memory to store 47 * all the allocated grant-refs, i.e., you need to allocate 48 * (sizeof(struct ioctl_gntdev_alloc_gref) + (count - 1)*sizeof(uint32_t)) [all …]
|