Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for mmap (0.1 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

        return;
      }
    
      struct stat st;
      fstat(fd, &st);
      if (S_ISDIR(st.st_mode)) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION, "path is a directory");
      } else {
        const void* address =
            mmap(nullptr, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
        if (address == MAP_FAILED) {
          TF_SetStatusFromIOError(status, errno, path);
        } else {
          region->plugin_memory_region =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 24 20:08:23 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. src/runtime/debug/garbage.go

    // the same process. Examples of excluded memory sources include: OS
    // kernel memory held on behalf of the process, memory allocated by
    // C code, and memory mapped by syscall.Mmap (because it is not
    // managed by the Go runtime).
    //
    // More specifically, the following expression accurately reflects
    // the value the runtime attempts to maintain as the limit:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. src/cmd/internal/obj/objfile.go

    		o.SetSym(symref)
    		o.SetName(rs.Name, w.Writer)
    		o.Write(w.Writer)
    	})
    	// TODO: output in sorted order?
    	// Currently tools (cmd/internal/goobj package) doesn't use mmap,
    	// and it just read it into a map in memory upfront. If it uses
    	// mmap, if the output is sorted, it probably could avoid reading
    	// into memory and just do lookups in the mmap'd object file.
    }
    
    // return the number of aux symbols s have.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/syscall/syscall_darwin.go

    //sys	Unlink(path string) (err error)
    //sys	Unmount(path string, flags int) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //sys	writev(fd int, iovecs []Iovec) (cnt uintptr, err error)
    //sys   mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
    //sys   munmap(addr uintptr, length uintptr) (err error)
    //sysnb fork() (pid int, err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:50 UTC 2024
    - 11K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/elfexec/elfexec.go

    }
    
    // kernelBase calculates the base for kernel mappings, which usually require
    // special handling. For kernel mappings, tools (like perf) use the address of
    // the kernel relocation symbol (_text or _stext) as the mmap start. Additionally,
    // for obfuscation, ChromeOS profiles have the kernel image remapped to the 0-th page.
    func kernelBase(loadSegment *elf.ProgHeader, stextOffset *uint64, start, limit, offset uint64) (uint64, bool) {
    	const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. src/runtime/race.go

    	}
    
    	racecall(&__tsan_init, uintptr(unsafe.Pointer(&gctx)), uintptr(unsafe.Pointer(&pctx)), abi.FuncPCABI0(racecallbackthunk), 0)
    
    	// Round data segment to page boundaries, because it's used in mmap().
    	start := ^uintptr(0)
    	end := uintptr(0)
    	if start > firstmoduledata.noptrdata {
    		start = firstmoduledata.noptrdata
    	}
    	if start > firstmoduledata.data {
    		start = firstmoduledata.data
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd.go

    //sys	Unlink(path string) (err error)
    //sys	Unlinkat(dirfd int, path string, flags int) (err error)
    //sys	Unmount(path string, flags int) (err error)
    //sys	write(fd int, p []byte) (n int, err error)
    //sys	mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error)
    //sys	munmap(addr uintptr, length uintptr) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  8. src/syscall/zsyscall_openbsd_arm.go

    	}
    	return
    }
    
    func libc_writev_trampoline()
    
    //go:cgo_import_dynamic libc_writev writev "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.6K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_aix_ppc64.go

    //go:cgo_import_dynamic libc_write write "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_writev writev "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_gettimeofday gettimeofday "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_mmap mmap "libc.a/shr_64.o"
    //go:cgo_import_dynamic libc_munmap munmap "libc.a/shr_64.o"
    
    //go:linkname libc_fcntl libc_fcntl
    //go:linkname libc_Dup2 libc_Dup2
    //go:linkname libc_pipe libc_pipe
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  10. src/syscall/zsyscall_openbsd_riscv64.go

    	}
    	return
    }
    
    func libc_writev_trampoline()
    
    //go:cgo_import_dynamic libc_writev writev "libc.so"
    
    // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
    
    func mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:51:20 UTC 2024
    - 47.5K bytes
    - Viewed (0)
Back to top