Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,076 for fallocate (0.13 sec)

  1. tensorflow/c/experimental/stream_executor/stream_executor.h

      // Deallocate the device memory previously allocated via this interface.
      // Deallocation of a nullptr-representative value is permitted.
      void (*deallocate)(const SP_Device* device, SP_DeviceMemoryBase* memory);
    
      // Allocates a region of host memory and registers it with the platform API.
      // Memory allocated in this manner is required for use in asynchronous memcpy
      // operations, such as `memcpy_dtoh`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 24 08:40:35 UTC 2022
    - 21.6K bytes
    - Viewed (0)
  2. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/AbstractAvailablePortAllocator.groovy

                for (int i = 0; i < reservations.size(); i++) {
                    ReservedPortRange range = reservations.get(i)
                    if (range.allocated.contains(port)) {
                        range.deallocate(port)
                        if (reservations.size() > 1 && range.allocated.isEmpty()) {
                            releaseRange(range)
                        }
                    }
                }
            } finally {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 05 16:58:31 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  3. src/runtime/traceregion.go

    		}
    
    		// Add the existing block to the full list.
    		block.next = a.full
    		a.full = block
    	}
    
    	// Allocate a new block.
    	block = (*traceRegionAllocBlock)(sysAlloc(unsafe.Sizeof(traceRegionAllocBlock{}), &memstats.other_sys))
    	if block == nil {
    		throw("traceRegion: out of memory")
    	}
    
    	// Allocate space for our current request, so we always make
    	// progress.
    	block.off.Store(n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. pkg/registry/core/service/portallocator/allocator.go

    		// include valid port range in error
    		validPorts := r.portRange.String()
    		return &ErrNotInRange{validPorts}
    	}
    
    	allocated, err := r.alloc.Allocate(offset)
    	if err != nil {
    		// update metrics
    		r.metrics.incrementAllocationErrors("static")
    		return err
    	}
    	if !allocated {
    		// update metrics
    		r.metrics.incrementAllocationErrors("static")
    		return ErrAllocated
    	}
    
    	// update metrics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/devicemanager/manager.go

    	// If we can allocate all remaining devices from the set of aligned ones, then
    	// give the plugin the chance to influence which ones to allocate from that set.
    	if needed < aligned.Len() {
    		// First allocate from the preferred devices list (if available).
    		preferred, err := m.callGetPreferredAllocationIfAvailable(podUID, contName, resource, aligned.Union(allocated), allocated, required)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  6. pkg/registry/core/service/portallocator/controller/repair.go

    					runtime.HandleError(fmt.Errorf("the node port %d for service %s/%s is not allocated; repairing", port, svc.Name, svc.Namespace))
    				}
    				delete(c.leaks, port) // it is used, so it can't be leaked
    			case portallocator.ErrAllocated:
    				// port is duplicate, reallocate
    				nodePortRepairPortErrors.WithLabelValues("duplicate").Inc()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Sep 30 15:46:06 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  7. pkg/registry/core/service/ipallocator/bitmap.go

    const dryRunFalse = false
    
    // Allocate attempts to reserve the provided IP. ErrNotInRange or
    // ErrAllocated will be returned if the IP is not valid for this range
    // or has already been reserved.  ErrFull will be returned if there
    // are no addresses left.
    func (r *Range) Allocate(ip net.IP) error {
    	return r.allocate(ip, dryRunFalse)
    }
    
    func (r *Range) allocate(ip net.IP, dryRun bool) error {
    	label := r.CIDR()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 25 20:32:40 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux.go

    //sysnb	EpollCtl(epfd int, op int, fd int, event *EpollEvent) (err error)
    //sys	Eventfd(initval uint, flags int) (fd int, err error) = SYS_EVENTFD2
    //sys	Exit(code int) = SYS_EXIT_GROUP
    //sys	Fallocate(fd int, mode uint32, off int64, len int64) (err error)
    //sys	Fchdir(fd int) (err error)
    //sys	Fchmod(fd int, mode uint32) (err error)
    //sys	Fchownat(dirfd int, path string, uid int, gid int, flags int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 05:26:45 UTC 2024
    - 77.5K bytes
    - Viewed (0)
  9. pkg/registry/core/service/allocator/bitmap_test.go

    	dynamicOffset := 16
    	// just to double check off by one errors
    	allocated := 0
    	m := NewAllocationMapWithOffset(max, "test", dynamicOffset)
    	// Allocate all possible values except the reserved
    	for i := dynamicOffset; i < max; i++ {
    		if ok, _ := m.Allocate(i); !ok {
    			t.Errorf("error allocate i %v", i)
    		} else {
    			allocated++
    		}
    	}
    	// Allocate all the values of the reserved block except one
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 10 08:56:31 UTC 2022
    - 13.3K bytes
    - Viewed (0)
  10. pkg/registry/core/service/allocator/storage/storage_test.go

    	// Allocate an item in the storage
    	if _, err := storage.Allocate(2); err != nil {
    		t.Fatal(err)
    	}
    
    	// Release the item in the local bitmap
    	// emulating it's out of sync with the storage
    	err := backing.Release(2)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// It should fail trying to allocate it deespite it's free
    	// in the local bitmap because it's not in the storage
    	ok, err := storage.Allocate(2)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 01 20:54:26 UTC 2021
    - 4.8K bytes
    - Viewed (0)
Back to top