Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for archauxv (0.16 sec)

  1. src/internal/cpu/cpu_arm64_hwcap.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm64 && linux
    
    package cpu
    
    import _ "unsafe" // for linkname
    
    // HWCap may be initialized by archauxv and
    // should not be changed after it was initialized.
    //
    // Other widely used packages
    // access HWCap using linkname as well, most notably:
    //   - github.com/klauspost/cpuid/v2
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/runtime/os_linux.go

    			// worth of random data.
    			startupRand = (*[16]byte)(unsafe.Pointer(val))[:]
    
    		case _AT_PAGESZ:
    			physPageSize = val
    
    		case _AT_SECURE:
    			secureMode = val == 1
    		}
    
    		archauxv(tag, val)
    		vdsoauxv(tag, val)
    	}
    	return i / 2
    }
    
    var sysTHPSizePath = []byte("/sys/kernel/mm/transparent_hugepage/hpage_pmd_size\x00")
    
    func getHugePageSize() uintptr {
    	var numbuf [20]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 25.9K bytes
    - Viewed (0)
Back to top