- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 269 for Munmap (0.16 sec)
-
src/cmd/link/internal/ld/outbuf_mmap.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 19 11:20:31 UTC 2024 - 1.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/mmap_nomremap.go
//go:build aix || darwin || dragonfly || freebsd || openbsd || solaris || zos package unix var mapper = &mmapper{ active: make(map[*byte][]byte), mmap: mmap, munmap: munmap,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 22:18:42 UTC 2024 - 343 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap.go
} // Mmap maps the given file into memory. // When remapping a file, pass the most recently returned Data. func Mmap(f *os.File, data *Data) (Data, error) { return mmapFile(f, data) } // Munmap unmaps the given file from memory. func Munmap(d *Data) error { // d.f.Close() on Windows still gets an error return munmapFile(*d)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 21:40:49 UTC 2024 - 1002 bytes - Viewed (0) -
src/runtime/cgo/gcc_mmap.c
return (uintptr_t)errno; } return (uintptr_t)p; } void x_cgo_munmap(void *addr, uintptr_t length) { int r; _cgo_tsan_acquire(); r = munmap(addr, length); _cgo_tsan_release(); if (r < 0) { /* The Go runtime is not prepared for munmap to fail. */ abort(); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:58:13 UTC 2023 - 916 bytes - Viewed (0) -
src/runtime/export_mmap_test.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build unix // Export guts for testing. package runtime var Mmap = mmap var Munmap = munmap const ENOMEM = _ENOMEM const MAP_ANON = _MAP_ANON const MAP_PRIVATE = _MAP_PRIVATE const MAP_FIXED = _MAP_FIXED func GetPhysPageSize() uintptr { return physPageSize
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 429 bytes - Viewed (0) -
src/runtime/cgo/mmap.go
// C/C++ code; this permits that code to see the Go code as normal // program addresses that have been initialized. // To support interceptors that look for both mmap and munmap, // also call the C library for munmap. //go:cgo_import_static x_cgo_mmap //go:linkname x_cgo_mmap x_cgo_mmap //go:linkname _cgo_mmap _cgo_mmap var x_cgo_mmap byte var _cgo_mmap = &x_cgo_mmap //go:cgo_import_static x_cgo_munmap
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:58:13 UTC 2023 - 1K bytes - Viewed (0) -
src/runtime/mmap.go
// The err result is an OS error code such as ENOMEM. func mmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) (p unsafe.Pointer, err int) // munmap calls the munmap 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 - 844 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap_unix.go
} return Data{f, data[:n], nil}, nil } func munmapFile(d Data) error { if len(d.Data) == 0 { return nil } err := syscall.Munmap(d.Data) if err != nil { return &fs.PathError{Op: "munmap", Path: d.f.Name(), Err: err} } return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 21:40:49 UTC 2024 - 1.1K bytes - Viewed (0) -
src/runtime/cgo_mmap.go
func callCgoMmap(addr unsafe.Pointer, n uintptr, prot, flags, fd int32, off uint32) uintptr // sysMunmap calls the munmap system call. It is implemented in assembly. func sysMunmap(addr unsafe.Pointer, n uintptr) // callCgoMunmap calls the munmap function in the runtime/cgo package // using the GCC calling convention. 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) -
src/syscall/mmap_unix_test.go
func TestMmap(t *testing.T) { b, err := syscall.Mmap(-1, 0, syscall.Getpagesize(), syscall.PROT_NONE, syscall.MAP_ANON|syscall.MAP_PRIVATE) if err != nil { t.Fatalf("Mmap: %v", err) } if err := syscall.Munmap(b); err != nil { t.Fatalf("Munmap: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 23:58:34 UTC 2022 - 500 bytes - Viewed (0)