site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com The following code, when made from within a kernel extension, results in the error variable being set to 1 (EPERM?): int error; int numberOfCPUs = 0; size_t numberOfCPUsSize = sizeof( int ); error = sysctlbyname( "hw.ncpu", &numberOfCPUs, &numberOfCPUsSize, NULL /* new value */, 0 /* new value length */ ); Any ideas? The same code works fine from a user-mode console application. I'm running Mac OS X 10.3.5. Thanks! geoff -- Geoffrey Schmit Senior Software Engineer National Instruments geoffrey.schmit@ni.com www.ni.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Geoffrey Schmit