kvm_getpcpu.3 (794a9a6c96abe0413fbaf3a7f116e0a0e84e0e85) | kvm_getpcpu.3 (cd11f01e4a0022cf28cc3c8b80f58c2e91b44d27) |
---|---|
1.\" Copyright (c) 2008 Yahoo!, Inc. 2.\" All rights reserved. 3.\" Written by: John Baldwin <jhb@FreeBSD.org> 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 57 unchanged lines hidden (view full) --- 66The caller is responsible for releasing the buffer via a call to 67.Xr free 3 68when it is no longer needed. 69If 70.Fa cpu 71is not active, then 72.Dv NULL 73is returned instead. | 1.\" Copyright (c) 2008 Yahoo!, Inc. 2.\" All rights reserved. 3.\" Written by: John Baldwin <jhb@FreeBSD.org> 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 57 unchanged lines hidden (view full) --- 66The caller is responsible for releasing the buffer via a call to 67.Xr free 3 68when it is no longer needed. 69If 70.Fa cpu 71is not active, then 72.Dv NULL 73is returned instead. |
74.Sh CACHING 75These functions cache the nlist values for various kernel variables which are 76reused in successive calls. 77You may call either function with 78.Fa kd 79set to 80.Dv NULL 81to clear this cache. |
|
74.Sh RETURN VALUES 75On success, the 76.Fn kvm_getmaxcpu 77function returns the maximum number of CPUs supported by the kernel. 78If an error occurs, 79it returns -1 instead. 80.Pp 81On success, the --- 12 unchanged lines hidden --- | 82.Sh RETURN VALUES 83On success, the 84.Fn kvm_getmaxcpu 85function returns the maximum number of CPUs supported by the kernel. 86If an error occurs, 87it returns -1 instead. 88.Pp 89On success, the --- 12 unchanged lines hidden --- |