search for: linuxplatform

Displaying 5 results from an estimated 5 matches for "linuxplatform".

Did you mean: linux_platform
2010 May 24
0
[PATCH matahari] Moves the CPU properties into the Host API space.
...{ public: + virtual void updated() = 0; virtual void heartbeat(unsigned long timestamp) = 0; }; diff --git a/src/linux_platform.cpp b/src/linux_platform.cpp index fbcfdb9..b05a327 100644 --- a/src/linux_platform.cpp +++ b/src/linux_platform.cpp @@ -36,7 +36,7 @@ extern "C" { LinuxPlatform::LinuxPlatform() { - int core_count = 0; + int cpu_count = 0; string model = "unknown"; struct udev* udev = udev_new(); @@ -50,9 +50,9 @@ LinuxPlatform::LinuxPlatform() udev_list_entry_foreach(entry, entries) { - core_count++; + cpu_count++;...
2010 Apr 21
1
[PATCH matahari] Created a new platform-abstraction layer named Platform.
It provides an initial implementation, LinuxPlatform, which is by default included in the build. Later code will refactor the build process to include the appropriate implementation depending on the target platform. Signed-off-by: Darryl L. Pierce <dpierce at redhat.com> --- src/Makefile.am | 4 ++ src/linux_platform.cpp | 117 ++++...
2010 Apr 26
0
[PATCH matahari] Created the NetworkDevice agent.
...ip> #include <iostream> +#include <dirent.h> +#include <net/if.h> #include <pcre.h> #include <stdexcept> +#include <string.h> +#include <sys/ioctl.h> // TODO remove this wrapper once rhbz#583747 is fixed extern "C" { @@ -115,3 +120,68 @@ LinuxPlatform::get_load_average() const return load_average; } + +vector<NetworkDeviceAgent> +LinuxPlatform::get_network_devices() const +{ + vector<NetworkDeviceAgent> result; + + DIR* entries = opendir("/sys/class/net"); + + if(entries) + { + struct udev* udev = udev_new(...
2010 Apr 26
2
Patch supercedes previous patch...
In looking at the code I realized that the last of the HAL depenencies were removed with this patch. So, I'm pushing an updated patch that contains none of the HAL code in it.
2007 Jun 01
3
Question on the R's C stack limit
Dear r-devel members, I encountered a C stack limit issue, when I tried to embed R 2.5 into my application. In the R-exts document, it says:"Note that R's own front ends use a stack size of 10Mb". I desire to know: is it possible to decrease this stack size by modifying R's source code? If it's possible, which part of the source code is responsible for the issue? Thank