You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: numcpus_bsd.go
    path of file: ./repos/kubeedge/vendor/github.com/tklauser/numcpus
    
    the code of the file until where you have to start completion: // Copyright 2018 Tobias Klauser
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not
    
func getKernelMax() (int, error) {
	if runtime.GOOS == "freebsd" {
		n, err := unix.SysctlUint32("kern.smp.maxcpus")
		return int(n), err
	}
	return 0, ErrNotSupported
}