Displaying 20 results from an estimated 1185 matches for "bd".
Did you mean:
db
2008 Jul 09
1
memory leak in sub("[range]",...)
There is a 2-block memory leak in the sub() (or any other regex-related
function, probably) when the pattern argument involves a range
expression, e.g., '[0-9]'.
% R --debugger=valgrind --debugger-args=--leak-check=full --vanilla
==14519== Memcheck, a memory error detector.
==14519== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al.
==14519== Using LibVEX rev 1658, a
2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
...*machine_id;
+ const char *linux_;
+ const char *initrd;
+ const char *efi;
+ char *options;
+ const char *devicetree;
+ const char *architecture;
+ char *sort_field; /* used internally for sorting */
+ const char *filename;
+};
+
+static void clear_bls_data(struct blsdata *bd)
+{
+ refstr_put(bd->title);
+ refstr_put(bd->version);
+ free(bd->version0);
+ refstr_put(bd->machine_id);
+ refstr_put(bd->linux_);
+ refstr_put(bd->initrd);
+ refstr_put(bd->efi);
+ free(bd->options);
+ refstr_put(bd->devicetree);
+ refstr...
2007 May 09
3
[patch 8/9] lguest: the block driver
...id end_entire_request(struct request *req, int uptodate)
+{
+ if (end_that_request_first(req, uptodate, req->hard_nr_sectors))
+ BUG();
+ add_disk_randomness(req->rq_disk);
+ blkdev_dequeue_request(req);
+ end_that_request_last(req, uptodate);
+}
+
+static irqreturn_t lgb_irq(int irq, void *_bd)
+{
+ struct blockdev *bd = _bd;
+ unsigned long flags;
+
+ if (!bd->req) {
+ pr_debug("No work!\n");
+ return IRQ_NONE;
+ }
+
+ if (!bd->lb_page->result) {
+ pr_debug("No result!\n");
+ return IRQ_NONE;
+ }
+
+ spin_lock_irqsave(&bd->lock, flags);
+ end_enti...
2007 May 09
3
[patch 8/9] lguest: the block driver
...id end_entire_request(struct request *req, int uptodate)
+{
+ if (end_that_request_first(req, uptodate, req->hard_nr_sectors))
+ BUG();
+ add_disk_randomness(req->rq_disk);
+ blkdev_dequeue_request(req);
+ end_that_request_last(req, uptodate);
+}
+
+static irqreturn_t lgb_irq(int irq, void *_bd)
+{
+ struct blockdev *bd = _bd;
+ unsigned long flags;
+
+ if (!bd->req) {
+ pr_debug("No work!\n");
+ return IRQ_NONE;
+ }
+
+ if (!bd->lb_page->result) {
+ pr_debug("No result!\n");
+ return IRQ_NONE;
+ }
+
+ spin_lock_irqsave(&bd->lock, flags);
+ end_enti...
2019 May 25
2
[PATCH] (vesa)menu.c32: Add support for BLS
...h enables syslinux's
> > (vesa)menu.c32 modules to parse the drop-in files that are defined by
> > this new specification.
>
> Any reason why you don't try to implement this in syslinux core?
>
> <snip>
>
> > +static int parse_bls1_file(struct blsdata *bd, const char *filename)
> > +{
> > + FILE *f = NULL;
> > + char line[MAX_LINE], *p;
> > + char *sort_field;
> > +
> > + dprintf("Opening bls entry: %s ", filename);
> > +
> > + f = fopen(filename, "r");
> > +...
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...FICATION
+ * #type-1-boot-loader-specification-entries
+ */
+
+#include <ctype.h>
+#include <stdlib.h>
+#include <string.h>
+#include <stdio.h>
+#include <dprintf.h>
+#include "refstr.h"
+#include "bls.h"
+
+const char *get_bls_field(struct blsdata *bd, const char *fieldname) {
+ if (!bd || !fieldname)
+ return NULL;
+
+ if (strcmp(fieldname, "filename") == 0)
+ return bd->filename;
+ if (strcmp(fieldname, "title") == 0)
+ return bd->title;
+ if (strcmp(fieldname, "version") == 0)
+ return bd->ve...
2011 Apr 13
2
setting pairwise comparisons of columns
...39;t matter,
so with 3 genes, there are 3 comparisons, 4 genes=6 comparisons) in a new
data.frame or matrix so that I can then test each pair with a chi-square
test in a loop.
Below is some sample data of the form I will be using.
> lets<-c("ab","ac","bc","bd")
> epi<-data.frame(cbind("M1"= c(sample(lets,10,
replace=TRUE)),"M2"=c(sample(lets,10,replace=TRUE)), "M3"=c(sample(lets,10,
replace=TRUE))))
> print(epi)
M1 M2 M3
1 ac bc bd
2 ac ac bd
3 bd bd bd
4 ab ac bd
5 ac bc bd
6 bd bd bc
7 ab ac ab
8...
2019 May 25
0
[PATCH] (vesa)menu.c32: Add support for BLS
...s are using this yet?
> This patch enables syslinux's
> (vesa)menu.c32 modules to parse the drop-in files that are defined by
> this new specification.
Any reason why you don't try to implement this in syslinux core?
<snip>
> +static int parse_bls1_file(struct blsdata *bd, const char *filename)
> +{
> + FILE *f = NULL;
> + char line[MAX_LINE], *p;
> + char *sort_field;
> +
> + dprintf("Opening bls entry: %s ", filename);
> +
> + f = fopen(filename, "r");
> + dprintf("%s\n", f ? "ok"...
2019 May 27
0
[PATCH] (vesa)menu.c32: Add support for BLS
...e
support for it. I guess "$BOOT/loader/entries/" is fixed as
"/loader/entries" for syslinux/extlinux/isolinux. It could depend
on "pxelinux.pathprefix" for pxelinux.
> >
> > <snip>
> >
> > > +static int parse_bls1_file(struct blsdata *bd, const char
> > > *filename) +{
> > > + FILE *f = NULL;
> > > + char line[MAX_LINE], *p;
> > > + char *sort_field;
> > > +
> > > + dprintf("Opening bls entry: %s ", filename);
> > > +
> > > + f = fopen(...
2016 Apr 15
11
[PATCH 1/2] nouveau/bl: Assign different names to interfaces
..._backlight.c
+++ b/drm/nouveau/nouveau_backlight.c
@@ -36,6 +36,10 @@
#include "nouveau_reg.h"
#include "nouveau_encoder.h"
+static atomic_t bl_interfaces_nb = { 0 };
+
+static char* nouveau_get_backlight_name(void);
+
static int
nv40_get_intensity(struct backlight_device *bd)
{
@@ -74,6 +78,7 @@ nv40_backlight_init(struct drm_connector *connector)
struct nvif_object *device = &drm->device.object;
struct backlight_properties props;
struct backlight_device *bd;
+ char* backlight_name = NULL;
if (!(nvif_rd32(device, NV40_PMC_BACKLIGHT) & NV40_PMC_BAC...
2003 Sep 07
0
µÚËĽ챱¾©³¯Ñô¹ú¼ÊÉÌÎñ½Ú
=BE=B4=C6=F4=D5=DF=A3=BA
=A1=B0=B5=DA=CB=C4=BD=EC=B1=B1=BE=A9=B3=AF=D1=F4=B9=FA=BC=CA=C9=CC=CE=F1=
=BD=DA=A1=B1=BD=AB=D3=DA2003=C4=EA10=D4=C2=D4=DA=B1=B1=BE=A9=BE=D9=B0=EC=A1=
=A3=BD=EC=CA=B1=A3=AC=B9=FA=BC=D2=C1=EC=B5=BC=C8=CB=A1=A2=CD=E2=B9=FA=D5=FE=
=D2=AA=BA=CD=C0=B4=D7=D4=C3=C0=A1=A2=B5=C2=A1=A2=B7=A8=A1=A2=B0=C4=B4=F3=C0=
=FB=D1=C7=B5=C8=...
2012 May 23
2
storing output of a loop in a matrix
"blap.txt" is a numeric vector of length 64.
I am using the following code:
bd<-scan("blap.txt")
output<-matrix(0,64,10)
s<-sum(bd)
for (i in 10){
while (s>0)
{x1<-sample(bd,(length(bd)-1), replace=F)
s<-sum(x1)
bd<-x1
output[i]<-s
}
}
write.table(output, file="res.txt")
This code is not doing what I'd like it to do:
1. It...
2016 Nov 13
1
[PATCH v3 1/2] nouveau/bl: Assign different names to interfaces
...a, 0, 0, GFP_KERNEL);
+ if (nb > 0 && nb < 100)
+ snprintf(backlight_name, BL_NAME_SIZE, "nv_backlight%d", nb);
+ else
+ snprintf(backlight_name, BL_NAME_SIZE, "nv_backlight");
+ connector->id = nb;
+}
+
static int
nv40_get_intensity(struct backlight_device *bd)
{
@@ -74,6 +95,8 @@ nv40_backlight_init(struct drm_connector *connector)
struct nvif_object *device = &drm->device.object;
struct backlight_properties props;
struct backlight_device *bd;
+ struct backlight_connector bl_connector;
+ char backlight_name[BL_NAME_SIZE];
if (!(nvif_rd...
2009 Feb 18
1
[PATCH] Add in-kernel backlight control support
...ter locations derived from NVClock by Roderick Colenbrander
+ */
+
+#include <linux/backlight.h>
+
+#include "drmP.h"
+#include "nouveau_drv.h"
+#include "nouveau_drm.h"
+#include "nouveau_reg.h"
+
+static int nv40_get_intensity(struct backlight_device *bd)
+{
+ struct drm_device *dev = bl_get_data(bd);
+ struct drm_nouveau_private *dev_priv = dev->dev_private;
+ int val = (NV_READ(NV40_PMC_BACKLIGHT) & NV40_PMC_BACKLIGHT_MASK) >> 16;
+
+ return val;
+}
+
+static int nv40_set_intensity(struct backlight_device *bd)
+{
+ struct drm_device...
2018 Mar 23
3
Ayuda con R-Studio condiciones
He tratado de usar lo siguiente:
a<- ifelse(BD$Divisi?n>=50 & BD$Divisi?n<59,"D",
ifelse (BD$Divisi?n>=60 & BD$Divisi?n<=69,"G",
ifelse (BD$Divisi?n>=70 & BD$Divisi?n<=79,"L",
ifelse...
2008 May 06
2
list manipulation
...list elements
at the end of each output as demonstrated below. How can I generate this
(and similar) result(s) without all the trailing NULLs?
> lapply(ls(pattern='bn'), function(x) cat(x, dim(get(x)), "\t",
names(get(x)), "\n"))
bn1993 2885 11 oplt rplt rsiz tree bd ht oaz odst raz rdst spr
bn1994 3158 7 oplt tree bd ht spr stat dam
bn1995 734 7 oplt tree bd ht spr stat dam
bn1996 293 7 oplt tree bd ht spr stat dam
bn1997 264 7 oplt tree bd ht spr stat dam
bn1998 768 7 oplt tree bd ht spr stat dam
bn1999 654 7 oplt tree bd ht dbh s...
2016 Apr 17
0
[PATCH v2 1/2] nouveau/bl: Assign different names to interfaces
...nb = ida_simple_get(&bl_ida, 0, 0, GFP_KERNEL);
+ if (nb > 0 && nb < 100)
+ sprintf(backlight_name, "nv_backlight%d", nb);
+ else
+ sprintf(backlight_name, "nv_backlight");
+ connector->id = nb;
+}
+
static int
nv40_get_intensity(struct backlight_device *bd)
{
@@ -74,6 +94,8 @@ nv40_backlight_init(struct drm_connector *connector)
struct nvif_object *device = &drm->device.object;
struct backlight_properties props;
struct backlight_device *bd;
+ struct backlight_connector bl_connector;
+ char backlight_name[15]; // 12 for name + 2 for digi...
2016 Dec 07
0
[PATCH v4 1/2] nouveau/bl: Assign different names to interfaces
...b >= 100)
+ return false;
+ if (nb > 0)
+ snprintf(backlight_name, BL_NAME_SIZE, "nv_backlight%d", nb);
+ else
+ snprintf(backlight_name, BL_NAME_SIZE, "nv_backlight");
+ connector->id = nb;
+ return true;
+}
+
static int
nv40_get_intensity(struct backlight_device *bd)
{
@@ -74,6 +98,8 @@ nv40_backlight_init(struct drm_connector *connector)
struct nvif_object *device = &drm->device.object;
struct backlight_properties props;
struct backlight_device *bd;
+ struct backlight_connector bl_connector;
+ char backlight_name[BL_NAME_SIZE];
if (!(nvif_rd...
2012 May 30
2
Prevent Samba clients from changing group ownership?
How can I prevent Samba clients from changing the group ownership of files?
With the security mask parameter I can prevent Samba clients from
changing some permission bits, but I can't find a parameter to prevent
changing the group ownership
2016 Nov 14
0
[PATCH v3 1/2] nouveau/bl: Assign different names to interfaces
...ight");
> + connector->id = nb;
> +}
> +
Just a minor issue, in the >= 100 case, backlight creation should probably
fail rather than reverting to "nv_backlight". Other than that LGTM.
Thanks,
Lukas
> static int
> nv40_get_intensity(struct backlight_device *bd)
> {
> @@ -74,6 +95,8 @@ nv40_backlight_init(struct drm_connector *connector)
> struct nvif_object *device = &drm->device.object;
> struct backlight_properties props;
> struct backlight_device *bd;
> + struct backlight_connector bl_connector;
> + char backlight_na...