Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 269 for mmat (0.03 sec)

  1. src/runtime/vdso_freebsd_x86.go

    	devPath[9] = digits[idx]
    
    	fd := open(&devPath[0], 0 /* O_RDONLY */ |_O_CLOEXEC, 0)
    	if fd < 0 {
    		atomic.Casuintptr(&hpetDevMap[idx], 0, ^uintptr(0))
    		return
    	}
    
    	addr, mmapErr := mmap(nil, physPageSize, _PROT_READ, _MAP_SHARED, fd, 0)
    	closefd(fd)
    	newP := uintptr(addr)
    	if mmapErr != 0 {
    		newP = ^uintptr(0)
    	}
    	if !atomic.Casuintptr(&hpetDevMap[idx], 0, newP) && mmapErr == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_unix.go

    		i = len(n)
    	}
    	return i
    }
    
    // Mmap manager, for use by operating system-specific implementations.
    
    type mmapper struct {
    	sync.Mutex
    	active map[*byte][]byte // active mappings; key is last byte in mapping
    	mmap   func(addr, length uintptr, prot, flags, fd int, offset int64) (uintptr, error)
    	munmap func(addr uintptr, length uintptr) error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/link.go

    	// Rather than creating a symbol, and writing all its data into the heap,
    	// you can create a symbol, and just a generation function will be called
    	// after the symbol's been created in the output mmap.
    	generatorSyms map[loader.Sym]generatorFunc
    }
    
    type cgodata struct {
    	file       string
    	pkg        string
    	directives [][]string
    }
    
    func (ctxt *Link) Logf(format string, args ...interface{}) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 5.1K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/outbuf.go

    	}
    	if out.isView {
    		panic("can't copyHeap a view")
    	}
    
    	bufLen := len(out.buf)
    	heapLen := len(out.heap)
    	total := uint64(bufLen + heapLen)
    	if heapLen != 0 {
    		if err := out.Mmap(total); err != nil { // Mmap will copy out.heap over to out.buf
    			Exitf("mapping output file failed: %v", err)
    		}
    	}
    	return true
    }
    
    // maxOutBufHeapLen limits the growth of the heap area.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 19:51:29 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/telemetry/internal/counter/file.go

    	if start/pageSize != (start+n)/pageSize {
    		// bump start to next page
    		start = round(limit, pageSize)
    	}
    	return start, start + n
    }
    
    var memmap = mmap.Mmap
    var munmap = mmap.Munmap
    
    func (m *mappedFile) close() {
    	m.closeOnce.Do(func() {
    		if m.mapping != nil {
    			munmap(m.mapping)
    			m.mapping = nil
    		}
    		if m.f != nil {
    			m.f.Close() // best effort
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/mmap/mmap_windows.go

    // Copyright 2011 The Go Authors.  All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package mmap
    
    import (
    	"fmt"
    	"os"
    	"syscall"
    	"unsafe"
    
    	"golang.org/x/sys/windows"
    )
    
    func mmapFile(f *os.File, previous *Data) (Data, error) {
    	if previous != nil {
    		munmapFile(*previous)
    	}
    	st, err := f.Stat()
    	if err != nil {
    		return Data{}, err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:10:54 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  7. src/syscall/syscall_solaris.go

    	n = int(r0)
    	if e1 != 0 {
    		err = e1
    	}
    	return
    }
    
    var mapper = &mmapper{
    	active: make(map[*byte][]byte),
    	mmap:   mmap,
    	munmap: munmap,
    }
    
    func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
    	return mapper.Mmap(fd, offset, length, prot, flags)
    }
    
    func Munmap(b []byte) (err error) {
    	return mapper.Munmap(b)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  8. src/syscall/syscall_unix.go

    		return i
    	}
    	return len(n)
    }
    
    // Mmap manager, for use by operating system-specific implementations.
    
    type mmapper struct {
    	sync.Mutex
    	active map[*byte][]byte // active mappings; key is last byte in mapping
    	mmap   func(addr, length uintptr, prot, flags, fd int, offset int64) (uintptr, error)
    	munmap func(addr uintptr, length uintptr) error
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. test/fixedbugs/issue8606b.go

    )
    
    type SI struct {
    	s string
    	i int
    }
    
    type SS struct {
    	s string
    	t string
    }
    
    func main() {
    	bad1 := "foo"
    	bad2 := "foo"
    
    	p := syscall.Getpagesize()
    	b, err := syscall.Mmap(-1, 0, p, syscall.PROT_READ|syscall.PROT_WRITE, syscall.MAP_ANON|syscall.MAP_PRIVATE)
    	if err != nil {
    		panic(err)
    	}
    	err = syscall.Mprotect(b, syscall.PROT_NONE)
    	if err != nil {
    		panic(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  10. src/syscall/syscall_bsd.go

    //sysnb ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) = SYS_IOCTL
    
    var mapper = &mmapper{
    	active: make(map[*byte][]byte),
    	mmap:   mmap,
    	munmap: munmap,
    }
    
    func Mmap(fd int, offset int64, length int, prot int, flags int) (data []byte, err error) {
    	return mapper.Mmap(fd, offset, length, prot, flags)
    }
    
    func Munmap(b []byte) (err error) {
    	return mapper.Munmap(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 10:34:48 UTC 2023
    - 13.6K bytes
    - Viewed (0)
Back to top