kvm_getpcpu.3 (494deaf8621bb0d7542dcbeb065935f65b5a1441) kvm_getpcpu.3 (1f50ad62db8e9c3425ac0162be0645e7beeba1ce)
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

--- 106 unchanged lines hidden (view full) ---

115.Fa base
116address.
117.Pp
118Symbols for dynamic per-CPU data are accessed via
119.Xr kvm_nlist 3
120as with other symbols.
121.Nm libkvm
122maintains a notion of the "current CPU", set by
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

--- 106 unchanged lines hidden (view full) ---

115.Fa base
116address.
117.Pp
118Symbols for dynamic per-CPU data are accessed via
119.Xr kvm_nlist 3
120as with other symbols.
121.Nm libkvm
122maintains a notion of the "current CPU", set by
123.Xr kvm_dpcpu_setcpu 3 ,
123.Fn kvm_dpcpu_setcpu ,
124which defaults to 0.
125Once another CPU is selected,
126.Xr kvm_nlist 3
127will return pointers to that data on the appropriate CPU.
128.Sh CACHING
129.Fn kvm_getmaxcpu
130and
131.Fn kvm_getpcpu

--- 38 unchanged lines hidden ---
124which defaults to 0.
125Once another CPU is selected,
126.Xr kvm_nlist 3
127will return pointers to that data on the appropriate CPU.
128.Sh CACHING
129.Fn kvm_getmaxcpu
130and
131.Fn kvm_getpcpu

--- 38 unchanged lines hidden ---