Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 148 for sysMmap (0.52 sec)

  1. src/runtime/cgo_mmap.go

    		}
    		return unsafe.Pointer(ret), 0
    	}
    	return sysMmap(addr, n, prot, flags, fd, off)
    }
    
    func munmap(addr unsafe.Pointer, n uintptr) {
    	if _cgo_munmap != nil {
    		systemstack(func() { callCgoMunmap(addr, n) })
    		return
    	}
    	sysMunmap(addr, n)
    }
    
    // sysMmap calls the mmap system call. It is implemented in assembly.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. src/runtime/sys_linux_loong64.s

    	JMP	runtime·sigtramp(SB)
    
    // func sysMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (p unsafe.Pointer, err int)
    TEXT runtime·sysMmap(SB),NOSPLIT|NOFRAME,$0
    	MOVV	addr+0(FP), R4
    	MOVV	n+8(FP), R5
    	MOVW	prot+16(FP), R6
    	MOVW	flags+20(FP), R7
    	MOVW	fd+24(FP), R8
    	MOVW	off+28(FP), R9
    
    	MOVV	$SYS_mmap, R11
    	SYSCALL
    	MOVW	$-4096, R5
    	BGEU	R5, R4, ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  3. src/runtime/memmove_linux_amd64_test.go

    	base, _, errno := syscall.Syscall6(syscall.SYS_MMAP,
    		0xa0<<32, 3<<30, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_PRIVATE|syscall.MAP_ANONYMOUS, ^uintptr(0), 0)
    	if errno != 0 {
    		t.Skipf("could not create memory mapping: %s", errno)
    	}
    	syscall.Syscall(syscall.SYS_MUNMAP, base, 3<<30, 0)
    
    	for off := uintptr(0); off < 3<<30; off += 65536 {
    		_, _, errno := syscall.Syscall6(syscall.SYS_MMAP,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:48:30 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. src/runtime/runtime_mmap_test.go

    import (
    	"runtime"
    	"testing"
    	"unsafe"
    )
    
    // Test that the error value returned by mmap is positive, as that is
    // what the code in mem_bsd.go, mem_darwin.go, and mem_linux.go expects.
    // See the uses of ENOMEM in sysMap in those files.
    func TestMmapErrorSign(t *testing.T) {
    	p, err := runtime.Mmap(nil, ^uintptr(0)&^(runtime.GetPhysPageSize()-1), 0, runtime.MAP_ANON|runtime.MAP_PRIVATE, -1, 0)
    
    	if p != nil || err != runtime.ENOMEM {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  5. src/runtime/mem_aix.go

    	if err != 0 {
    		return nil
    	}
    	return p
    }
    
    func sysMapOS(v unsafe.Pointer, n uintptr) {
    	// AIX does not allow mapping a range that is already mapped.
    	// So, call mprotect to change permissions.
    	// Note that sysMap is always called with a non-nil pointer
    	// since it transitions a Reserved memory region to Prepared,
    	// so mprotect is always possible.
    	_, err := mprotect(v, n, _PROT_READ|_PROT_WRITE)
    	if err == _ENOMEM {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. src/runtime/mem.go

    func sysReserve(v unsafe.Pointer, n uintptr) unsafe.Pointer {
    	return sysReserveOS(v, n)
    }
    
    // sysMap transitions a memory region from Reserved to Prepared. It ensures the
    // memory region can be efficiently transitioned to Ready.
    //
    // sysStat must be non-nil.
    func sysMap(v unsafe.Pointer, n uintptr, sysStat *sysMemStat) {
    	sysStat.add(int64(n))
    	sysMapOS(v, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  7. src/runtime/mpagealloc_64bit.go

    		}
    		// It's possible that after our pruning above, there's nothing new to map.
    		if need.size() == 0 {
    			continue
    		}
    
    		// Map and commit need.
    		sysMap(unsafe.Pointer(need.base.addr()), need.size(), p.sysStat)
    		sysUsed(unsafe.Pointer(need.base.addr()), need.size(), need.size())
    		p.summaryMappedReady += need.size()
    	}
    
    	// Update the scavenge index.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/util/peerproxy/peerproxy_handler.go

    	reconciler reconcilers.PeerEndpointLeaseReconciler
    
    	serializer runtime.NegotiatedSerializer
    
    	// SyncMap for storing an up to date copy of the storageversions and apiservers that can serve them
    	// This map is populated using the StorageVersion informer
    	// This map has key set to GVR and value being another SyncMap
    	// The nested SyncMap has key set to apiserver id and value set to boolean
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 19 00:36:22 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  9. src/runtime/mpagealloc_32bit.go

    	reservation := sysReserve(nil, totalSize)
    	if reservation == nil {
    		throw("failed to reserve page summary memory")
    	}
    	// There isn't much. Just map it and mark it as used immediately.
    	sysMap(reservation, totalSize, p.sysStat)
    	sysUsed(reservation, totalSize, totalSize)
    	p.summaryMappedReady += totalSize
    
    	// Iterate over the reservation and cut it up into slices.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 20 20:08:25 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  10. src/syscall/zsysnum_linux_riscv64.go

    	SYS_MREMAP                 = 216
    	SYS_ADD_KEY                = 217
    	SYS_REQUEST_KEY            = 218
    	SYS_KEYCTL                 = 219
    	SYS_CLONE                  = 220
    	SYS_EXECVE                 = 221
    	SYS_MMAP                   = 222
    	SYS_FADVISE64              = 223
    	SYS_SWAPON                 = 224
    	SYS_SWAPOFF                = 225
    	SYS_MPROTECT               = 226
    	SYS_MSYNC                  = 227
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 23 11:00:41 UTC 2019
    - 8.9K bytes
    - Viewed (0)
Back to top