Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 55 for sysfs (0.04 sec)

  1. src/internal/poll/writev.go

    				break
    			}
    		}
    		if len(iovecs) == 0 {
    			break
    		}
    		if fd.iovecs == nil {
    			fd.iovecs = new([]syscall.Iovec)
    		}
    		*fd.iovecs = iovecs // cache
    
    		var wrote uintptr
    		wrote, err = writev(fd.Sysfd, iovecs)
    		if wrote == ^uintptr(0) {
    			wrote = 0
    		}
    		TestHookDidWritev(int(wrote))
    		n += int64(wrote)
    		consume(v, int64(wrote))
    		clear(iovecs)
    		if err != nil {
    			if err == syscall.EINTR {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. src/internal/poll/sock_cloexec_accept.go

    	case syscall.EFAULT: // some Linux use this instead of ENOSYS
    	}
    
    	// See ../syscall/exec_unix.go for description of ForkLock.
    	// It is probably okay to hold the lock across syscall.Accept
    	// because we have put fd.sysfd into non-blocking mode.
    	// However, a call to the File method will put it back into
    	// blocking mode. We can't take that risk, so no use of ForkLock here.
    	ns, sa, err = AcceptFunc(s)
    	if err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 16 03:40:42 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  3. pilot/pkg/controllers/untaint/nodeuntainter.go

    			return false
    		}
    		return ns == object.GetNamespace()
    	}
    }
    
    func NewNodeUntainter(stop <-chan struct{}, kubeClient kubelib.Client, cniNs, sysNs string) *NodeUntainter {
    	log.Debugf("starting node untainter with labels %v", istioCniLabels)
    	ns := cniNs
    	if ns == "" {
    		ns = sysNs
    	}
    	podsClient := kclient.NewFiltered[*v1.Pod](kubeClient, kclient.Filter{
    		ObjectFilter:    kubetypes.NewStaticObjectFilter(filterNamespace(ns)),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. src/internal/poll/sendfile_windows.go

    			chunkSize = n
    		}
    
    		o.qty = uint32(chunkSize)
    		o.o.Offset = uint32(curpos)
    		o.o.OffsetHigh = uint32(curpos >> 32)
    
    		nw, err := execIO(o, func(o *operation) error {
    			return syscall.TransmitFile(o.fd.Sysfd, o.handle, o.qty, 0, &o.o, nil, syscall.TF_WRITE_BEHIND)
    		})
    		if err != nil {
    			return written, err
    		}
    
    		curpos += int64(nw)
    
    		// Some versions of Windows (Windows 10 1803) do not set
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/internal/poll/sendfile_solaris.go

    	}()
    	if err := dstFD.writeLock(); err != nil {
    		return 0, err, false
    	}
    	defer dstFD.writeUnlock()
    
    	if err := dstFD.pd.prepareWrite(dstFD.isFile); err != nil {
    		return 0, err, false
    	}
    
    	dst := dstFD.Sysfd
    	for remain > 0 {
    		n := maxSendfileSize
    		if int64(n) > remain {
    			n = int(remain)
    		}
    		pos1 := pos
    		n, err = syscall.Sendfile(dst, src, &pos1, n)
    		if err == syscall.EAGAIN || err == syscall.EINTR {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/internal/poll/fd_poll_runtime.go

    type pollDesc struct {
    	runtimeCtx uintptr
    }
    
    var serverInit sync.Once
    
    func (pd *pollDesc) init(fd *FD) error {
    	serverInit.Do(runtime_pollServerInit)
    	ctx, errno := runtime_pollOpen(uintptr(fd.Sysfd))
    	if errno != 0 {
    		return errnoErr(syscall.Errno(errno))
    	}
    	pd.runtimeCtx = ctx
    	return nil
    }
    
    func (pd *pollDesc) close() {
    	if pd.runtimeCtx == 0 {
    		return
    	}
    	runtime_pollClose(pd.runtimeCtx)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. src/os/dir_windows.go

    	// If this file has no dirInfo, create one.
    	var d *dirInfo
    	for {
    		d = file.dirinfo.Load()
    		if d != nil {
    			break
    		}
    		d = new(dirInfo)
    		d.init(file.pfd.Sysfd)
    		if file.dirinfo.CompareAndSwap(nil, d) {
    			break
    		}
    		// We lost the race: try again.
    		d.close()
    	}
    	d.mu.Lock()
    	defer d.mu.Unlock()
    	if d.buf == nil {
    		d.buf = dirBufPool.Get().(*[]byte)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. src/internal/poll/splice_linux.go

    		// but this shouldn't be a concern here, since the pipe buffer must be sufficient for
    		// this data transmission on the basis of the workflow in Splice.
    		n, err := splice(pipefd, sock.Sysfd, max, spliceNonblock)
    		if err == syscall.EINTR {
    			continue
    		}
    		if err != syscall.EAGAIN {
    			return n, err
    		}
    		if sock.pd.pollable() {
    			if err := sock.pd.waitRead(sock.isFile); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  9. src/os/writeto_linux_test.go

    	t.Cleanup(func() {
    		poll.TestHookDidSendFile = orig
    	})
    	poll.TestHookDidSendFile = func(dstFD *poll.FD, src int, written int64, err error, handled bool) {
    		h.called = true
    		h.dstfd = dstFD.Sysfd
    		h.srcfd = src
    		h.written = written
    		h.err = err
    		h.handled = handled
    	}
    	return h
    }
    
    type sendFileHook struct {
    	called bool
    	dstfd  int
    	srcfd  int
    
    	written int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 4K bytes
    - Viewed (0)
  10. src/net/splice_linux_test.go

    }
    
    func (h *spliceHook) install() {
    	h.original = pollSplice
    	pollSplice = func(dst, src *poll.FD, remain int64) (int64, bool, error) {
    		h.called = true
    		h.dstfd = dst.Sysfd
    		h.srcfd = src.Sysfd
    		h.remain = remain
    		h.written, h.handled, h.err = h.original(dst, src, remain)
    		return h.written, h.handled, h.err
    	}
    }
    
    func (h *spliceHook) uninstall() {
    	pollSplice = h.original
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top