Displaying 4 results from an estimated 4 matches for "get_vendor".
2017 Mar 23
2
[PATCH] p2v: Use lscpu instead of libvirt to get CPU information.
...ld (char **lscpu, const char *key)
+{
+ size_t i;
+
+ for (i = 0; lscpu[i] != NULL; i += 2) {
+ if (STREQ (lscpu[i], key))
+ return lscpu[i+1];
+ }
+
+ return NULL;
+}
+/**
+ * Read the CPU vendor from lscpu output.
+ */
static void
-ignore_errors (void *ignore, virErrorPtr ignore2)
+get_vendor (char **lscpu, struct cpu_config *cpu)
{
- /* empty */
+ const char *vendor = get_field (lscpu, "Vendor ID");
+
+ if (vendor) {
+ /* Note this mapping comes from /usr/share/libvirt/cpu_map.xml */
+ if (STREQ (vendor, "GenuineIntel"))
+ cpu->vendor = strdup (&qu...
2014 Nov 27
0
[Mesa-dev] [RFC] tegra: Initial support
...quot;
> +
> +/* TODO: obtain from include file */
> +struct pipe_screen *nouveau_drm_screen_create(int fd);
> +
> +static const char *
> +tegra_get_name(struct pipe_screen *pscreen)
> +{
> + return "tegra";
> +}
> +
> +static const char *
> +tegra_get_vendor(struct pipe_screen *pscreen)
> +{
> + return "tegra";
> +}
> +
> +static void tegra_screen_destroy(struct pipe_screen *pscreen)
> +{
> + struct tegra_screen *screen = to_tegra_screen(pscreen);
> +
> + screen->gpu->destroy(screen->gpu);...
2014 Nov 27
7
[RFC] tegra: Initial support
...tegra/tegra_resource.h"
+#include "tegra/tegra_screen.h"
+
+/* TODO: obtain from include file */
+struct pipe_screen *nouveau_drm_screen_create(int fd);
+
+static const char *
+tegra_get_name(struct pipe_screen *pscreen)
+{
+ return "tegra";
+}
+
+static const char *
+tegra_get_vendor(struct pipe_screen *pscreen)
+{
+ return "tegra";
+}
+
+static void tegra_screen_destroy(struct pipe_screen *pscreen)
+{
+ struct tegra_screen *screen = to_tegra_screen(pscreen);
+
+ screen->gpu->destroy(screen->gpu);
+ free(pscreen);
+}
+
+static int
+tegra_screen_get_param(stru...
2019 Sep 10
3
[PATCH 0/2] Remove virt-p2v from libguestfs
Now that virt-p2v has its own repository [1] and releases [2], it is
time to remove it from libguestfs.
[1] https://github.com/libguestfs/virt-p2v
[2] http://download.libguestfs.org/virt-p2v/
Pino Toscano (2):
Remove virt-p2v
Remove remaining virt-p2v bits
.gitignore | 4 -
Makefile.am | 7 +-
bash/Makefile.am