diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2008-09-22 14:31:24 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2008-09-22 14:31:24 +0000 |
commit | 0d9d822db07f9cab794a0fca4779e08e454504ec (patch) | |
tree | 6c4ca99b91c50853f9604eff470930128eafbd74 /lib/libpmc/pmc_capabilities.3 | |
parent | 9d661b5bf6fd3a80ea2fe0d5693310068b37e13b (diff) | |
download | FreeBSD-src-0d9d822db07f9cab794a0fca4779e08e454504ec.zip FreeBSD-src-0d9d822db07f9cab794a0fca4779e08e454504ec.tar.gz |
Document changes in behaviour due to sparse CPU numbering support.
Diffstat (limited to 'lib/libpmc/pmc_capabilities.3')
-rw-r--r-- | lib/libpmc/pmc_capabilities.3 | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/libpmc/pmc_capabilities.3 b/lib/libpmc/pmc_capabilities.3 index 97dc1a3..9a7b6e9 100644 --- a/lib/libpmc/pmc_capabilities.3 +++ b/lib/libpmc/pmc_capabilities.3 @@ -1,4 +1,4 @@ -.\" Copyright (c) 2007 Joseph Koshy. All rights reserved. +.\" Copyright (c) 2007-2008 Joseph Koshy. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -23,7 +23,7 @@ .\" .\" $FreeBSD$ .\" -.Dd November 24, 2007 +.Dd September 22, 2008 .Os .Dt PMC_CAPABILITIES 3 .Sh NAME @@ -96,8 +96,11 @@ in the system. .Pp Function .Fn pmc_ncpu -is a convenience function that returns the number of CPUs in the -system. +is a convenience function that returns the maximum CPU number in +the system. +On systems that support sparsely numbered CPUs, not all CPUs may +be physically present. +Applications need to be prepared to deal with nonexistent CPUs. .Pp Function .Fn pmc_npmc @@ -201,11 +204,11 @@ may fail with the following errors: .It Bq Er EINVAL The argument .Fa cpu -specified a non-existent CPU. +was invalid. .It Bq Er ENXIO The argument .Fa cpu -specified a disabled CPU. +specified a disabled or absent CPU. .El .Pp A call to function |