search for: maxlen

Displaying 20 results from an estimated 347 matches for "maxlen".

2015 Jan 14
0
[PATCH v3 09/16] pci: add pci_iomap_range
...i_dev; #ifdef CONFIG_PCI /* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); +extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, + unsigned long offset, + unsigned long maxlen); /* Create a virtual mapping cookie for a port on a given PCI device. * Do not call this directly, it exists to make it easier for architectures * to override */ @@ -30,6 +33,13 @@ static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned lon { return NULL; } + +static...
2015 Jan 14
0
[PATCH v3 09/16] pci: add pci_iomap_range
...i_dev; #ifdef CONFIG_PCI /* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); +extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, + unsigned long offset, + unsigned long maxlen); /* Create a virtual mapping cookie for a port on a given PCI device. * Do not call this directly, it exists to make it easier for architectures * to override */ @@ -30,6 +33,13 @@ static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned lon { return NULL; } + +static...
2018 Oct 10
1
Question about path MTU / segfault
Hi All, I traced the core dump of a segfaulting tinc (1.1pre16) and found that the problem occurs when dest->mtu is 0 in src/route.c:607:fragment_ipv4_packet() maxlen = (dest->mtu - ether_size - ip_size) & ~0x7; ... int len = todo > maxlen ? maxlen : todo; memcpy(DATA(&fragment) + ether_size + ip_size, offset, len); If dest->mtu is 0, signed int maxlen becomes -40 and is then passed as unsigned size_t len into memcpy which then segfaults. Else...
2014 Dec 11
0
[PATCH RFC 3/5] pci: add pci_iomap_range
.../* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); +extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, + unsigned offset, + unsigned long minlen, + unsigned long maxlen, + bool force_nocache); /* Create a virtual mapping cookie for a port on a given PCI device. * Do not call this directly, it exists to make it easier for architectures * to override */ diff --git a/lib/pci_iomap.c b/lib/pci_iomap.c index 0d83ea8..1ac4def 100644 --- a/lib/pci_iomap.c ++...
2014 Dec 11
0
[PATCH RFC 3/5] pci: add pci_iomap_range
.../* Create a virtual mapping cookie for a PCI BAR (memory or IO) */ extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); +extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, + unsigned offset, + unsigned long minlen, + unsigned long maxlen, + bool force_nocache); /* Create a virtual mapping cookie for a port on a given PCI device. * Do not call this directly, it exists to make it easier for architectures * to override */ diff --git a/lib/pci_iomap.c b/lib/pci_iomap.c index 0d83ea8..1ac4def 100644 --- a/lib/pci_iomap.c ++...
2011 Feb 07
1
About maxlen parameter in queues
Dear list, I want to avoid sending calls to a queue when it is full. From the fact that 'maxlen' must be at least 1 (I wish it could be zero but it isn't) I'd like to know if there's a way to do it. Setting the Queue() timeout to a little value is not the most suitable option. I'm using asterisk 1.4.21 but I don't know if there are some options available on release 1.8...
2012 Apr 04
1
read.socket utils package : somthing is going wrong
...sg2<-'function=subscribe|item=MI.EQCON.1|schema=ask1;bid1' #open socket connection socketPointer<-make.socket(host='localhost',port=5333,fail=TRUE,server=FALSE) #send the command line write.socket(socket=socketPointer,string=msg2) #read data read.socket(socket=socketPointer,maxlen=252,loop=FALSE) #send command to unsuscribe write.socket(socket=sockPointer,string=unsub) #close socket close.socket(sockPointer) The code remain stick on read.socket function, so I decided to use debug functionality: This is the read.socket source: debugging in: read.socket(socket = s.p, maxle...
2011 Nov 14
2
[PATCHv2 RFC] virtio-pci: flexible configuration layout
...mem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); +extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, + unsigned offset, + unsigned long minlen, + unsigned long maxlen); static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p) { } diff --git a/include/asm-generic/iomap.h b/include/asm-generic/iomap.h index 98dcd76..6f192d4 100644 --- a/include/asm-generic/iomap.h +++ b/include/asm-generic/iomap.h @@ -70,8 +70,19 @@ extern void ioport_unmap(void __i...
2011 Nov 14
2
[PATCHv2 RFC] virtio-pci: flexible configuration layout
...mem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); +extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, + unsigned offset, + unsigned long minlen, + unsigned long maxlen); static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p) { } diff --git a/include/asm-generic/iomap.h b/include/asm-generic/iomap.h index 98dcd76..6f192d4 100644 --- a/include/asm-generic/iomap.h +++ b/include/asm-generic/iomap.h @@ -70,8 +70,19 @@ extern void ioport_unmap(void __i...
2011 Nov 22
2
[PATCHv3 RFC] virtio-pci: flexible configuration layout
...mem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); +extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, + unsigned offset, + unsigned long minlen, + unsigned long maxlen); static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p) { } diff --git a/include/asm-generic/iomap.h b/include/asm-generic/iomap.h index 98dcd76..6f192d4 100644 --- a/include/asm-generic/iomap.h +++ b/include/asm-generic/iomap.h @@ -70,8 +70,19 @@ extern void ioport_unmap(void __i...
2011 Nov 22
2
[PATCHv3 RFC] virtio-pci: flexible configuration layout
...mem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); +extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, + unsigned offset, + unsigned long minlen, + unsigned long maxlen); static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p) { } diff --git a/include/asm-generic/iomap.h b/include/asm-generic/iomap.h index 98dcd76..6f192d4 100644 --- a/include/asm-generic/iomap.h +++ b/include/asm-generic/iomap.h @@ -70,8 +70,19 @@ extern void ioport_unmap(void __i...
2002 Sep 16
0
mosaicplot enhancements (PR#2023)
...lt; currlev= 1, label) < --- > if (!is.null(main) || !is.null(xlab) || !is.null(ylab) || !is.null(sub)) > title(main, sub = sub, xlab = xlab, ylab = ylab) > adj.x <- adj.y <- 0.5 > x1 <- 50; y1 <- 5; x2 <- 950; y2 <- 950 > maxlen.xlabel <- maxlen.ylabel <- 35 > ## Calculations required for 'las' related string rotation > ## and adjustment > if(srt.x == 90){ > maxlen.xlabel <- > max(strwidth(label[[dimd + 1 - match('v', rev(dir))]], >...
2007 Apr 12
2
[PATCH] Make com32 printf obey width-restriction on %s
...goto is_string; is_string: --- syslinux-3.36/com32/lib/strnlen.c.orig 2007-04-12 12:07:18.000000000 +0200 +++ syslinux-3.36/com32/lib/strnlen.c 2007-04-12 12:05:41.000000000 +0200 @@ -0,0 +1,14 @@ +/* + * strnlen.c + */ + +#include <string.h> + +size_t strnlen(const char *s, size_t maxlen) +{ + const char *ss = s; + while ( *ss && maxlen ) { + ss++; maxlen--; + } + return ss-s; +}
2006 Mar 17
3
[Bug 1173] scp reports lost connection for very large files
...*** Your vsnprintf() function is broken, complain to your vendor Consequently BROKEN_SNPRINTF gets defined in config.h and snprintf() definition comes from openbsd-compat/bsd-snprintf.c. Here are relevant lines from bsd-snprintf.c line 470 static void fmtint(char *buffer, size_t *currlen, size_t maxlen, long value, int base, int min, int max, int flags) { int signvalue = 0; unsigned long uvalue; It seems that type for 'value' should be 'LLONG' instead of 'long' and similarly type for 'uvalue' should be 'unsigned LLONG' i...
2009 Mar 18
1
sprintf("%d", integer(0)) aborts
...gs >= 100) error(_("only 100 arguments are allowed")); @@ -97,9 +97,12 @@ for(i = 0; i < nargs; i++) { lens[i] = length(a[i]); if(lens[i] == 0) - error(_("zero-length argument")); + return allocVector(STRSXP, 0) ; if(maxlen < lens[i]) maxlen = lens[i]; } + + outputString = R_AllocStringBuffer(0, &outbuff); + if(maxlen % length(format)) error(_("arguments cannot be recycled to the same length")); for(i = 0; i < nargs; i++)
2015 Jan 14
22
[PATCH v3 00/16] virtio-pci: towards virtio 1.0 guest support
Changes since v2: handling for devices without config space (e.g. rng) reduce # of mappings for VQs These patches seem to work fine on my virtio-1.0 qemu branch. There haven't been any bugs since v2: just minor cleanups and enhancements. QEMU side is still undergoing polishing, but is already testable. Rusty, what do you think? Let's merge these for 3.20? Also - will you be doing that
2015 Jan 14
22
[PATCH v3 00/16] virtio-pci: towards virtio 1.0 guest support
Changes since v2: handling for devices without config space (e.g. rng) reduce # of mappings for VQs These patches seem to work fine on my virtio-1.0 qemu branch. There haven't been any bugs since v2: just minor cleanups and enhancements. QEMU side is still undergoing polishing, but is already testable. Rusty, what do you think? Let's merge these for 3.20? Also - will you be doing that
2010 Sep 16
1
[RFC] function to parse string to argc/argv pair
...ne string * str Output character array * strl Size of array * argc Argument Count * argv Argument Values * returns Length of output string (like strlen()) */ int argcat(char *str, const int strl, const int argc, char *argv[]) { int i, arglen; /* index, argument length */ int curpos, maxlen = strl - 1; /* current position in str */ curpos = 0; str[0] = '\0'; /* Nullify string just to be sure */ for (i = 0; i < argc; i++) { arglen = strlen(argv[i]); /* Theoretically, this should never be met in SYSLINUX */ if ((curpos + arglen) > maxlen) arglen = maxl...
2007 Jan 31
2
what is the purpose of an error message in uniroot?
Hi all, This is probably a blindingly obvious question: Why does it matter in the uniroot function whether the f() values at the end points that you supply are of the same sign? For example: f <- function(x,y) {y-x^2+1} #this gives a warning uniroot(f,interval=c(-5,5),y=0) Error in uniroot(f, interval=c(-5, 5), y = 0) : f() values at end points not of opposite sign #this doesn't give a
2014 Dec 15
6
[PATCH RFC 0/5] virtio pci: virtio 1.0 support
This is on top of 3.19 master + my bugfix patches, and adds virtio 1.0 support to virtio pci. This is 3.20 material I think. Would like to get feedback on s390 change as it's untested. Michael S Tsirkin (2): pci: add pci_iomap_range s390: add pci_iomap_range Michael S. Tsirkin (2): virtio_pci: modern driver virtio_pci: macros for PCI layout offsets. Rusty Russell (1): virtio-pci: