Displaying 9 results from an estimated 9 matches for "copy_len".
Did you mean:
cap_len
2000 Aug 12
1
libao patch: Minor clean up / Byte-order proposal
...ndle;
- void *buf;
+ char *buf;
int buf_size;
int buf_end;
int card;
@@ -191,9 +191,9 @@
ao_alsa_play (ao_internal_t *state, void* output_samples, uint_32 num_bytes)
{
ao_alsa_internal_t *s = (ao_alsa_internal_t *) state;
- snd_pcm_t *pcm_handle = s->pcm_handle;
int packed = 0;
int copy_len;
+ char *samples = (char *) output_samples;
while (packed < num_bytes)
{
@@ -203,9 +203,7 @@
else
copy_len = s->buf_size-s->buf_end;
- memcpy(s->buf + s->buf_end,
- output_samples + packed,
- copy_len);
+ memcpy(s->buf + s->buf_end, samples +...
2019 Mar 12
0
[RFC PATCH V2 0/5] vhost: accelerate metadata access through vmap()
...ote:
> I'm sure there must be workarounds elsewhere in the other arch code
> otherwise things like this, which appear all over drivers/, wouldn't
> work:
>
> drivers/scsi/isci/request.c:1430
>
> kaddr = kmap_atomic(page);
> memcpy(kaddr + sg->offset, src_addr, copy_len);
> kunmap_atomic(kaddr);
>
Are you sure "page" is an userland page with an alias address?
sg->page_link = (unsigned long)virt_to_page(addr);
page_link seems to point to kernel memory.
I found an apparent solution like parisc on arm 32bit:
void __kunmap_atomic(void *kvadd...
2007 Apr 18
0
[Bridge] [PATCH] bridge: fix gcc format warning
..._types ./net/bridge/netfilter/ebt_ulog.c
--- ./net/bridge/netfilter/ebt_ulog.c~brnetf_types 2005-01-10 10:38:40.531343592 -0800
+++ ./net/bridge/netfilter/ebt_ulog.c 2005-01-10 12:31:10.076256800 -0800
@@ -135,7 +135,7 @@ static void ebt_ulog(const struct sk_buf
size = NLMSG_SPACE(sizeof(*pm) + copy_len);
if (size > nlbufsiz) {
- PRINTR("ebt_ulog: Size %d needed, but nlbufsiz=%d\n",
+ PRINTR("ebt_ulog: Size %zu needed, but nlbufsiz=%u\n",
size, nlbufsiz);
return;
}
---
2007 Apr 18
0
[Bridge] [EBTABLES][PATCH] fix gcc format warning
..._types ./net/bridge/netfilter/ebt_ulog.c
--- ./net/bridge/netfilter/ebt_ulog.c~brnetf_types 2005-01-10 10:38:40.531343592 -0800
+++ ./net/bridge/netfilter/ebt_ulog.c 2005-01-10 12:31:10.076256800 -0800
@@ -135,7 +135,7 @@ static void ebt_ulog(const struct sk_buf
size = NLMSG_SPACE(sizeof(*pm) + copy_len);
if (size > nlbufsiz) {
- PRINTR("ebt_ulog: Size %d needed, but nlbufsiz=%d\n",
+ PRINTR("ebt_ulog: Size %zu needed, but nlbufsiz=%u\n",
size, nlbufsiz);
return;
}
2013 Apr 22
0
One of our users cannot connect to Samba-shares
...sesssetup.c(1317) cmd=115 (SMBsesssetupX) NT_STATUS_MORE_PROCESSING_REQUIRED
.....
[2013/04/22 14:18:28.800264, 10, pid=23552, effective(0, 0), real(0, 0)] smbd/sesssetup.c:1053(check_spnego_blob_complete)
check_spnego_blob_complete: pad->partial_data.length = 16460, pad->needed_len = 4689, copy_len = 16460, pblob->length = 16460,
.....
[2013/04/22 14:18:28.800603, 3, pid=23552, effective(0, 0), real(0, 0)] smbd/sesssetup.c:806(reply_spnego_negotiate)
reply_spnego_negotiate: Got secblob of size 21071
[2013/04/22 14:18:28.801778, 3, pid=23552, effective(0, 0), real(0, 0)] libads/kerberos...
2013 Apr 23
1
imap Panic: file istream-seekable.c: line 253 (i_stream_seekable_read): assertion failed: (stream->istream.v_offset + stream->pos <= sstream->write_peak)
...ream = 0xd5e440
data = 0xd39ea0 "\002"
ptr = 0xd39ea0 "\002"
src = 0x7fffffffffff <Address 0x7fffffffffff out of bounds>
src_end = 0xd39f00 "Ak"
dest = 0xd39f00 "Ak"
dest_end = 0x0
size = 0
copy_len = 27457
ret = 140734799442160
__FUNCTION__ = "i_stream_crlf_read_crlf"
#14 0x00007fea0d77e866 in i_stream_read (stream=0xd5e4a0) at istream.c:149
_stream = 0xd5e440
old_size = 0
ret = 140643225038704
__FUNCTION__ = "i_stream_read"...
2011 Aug 31
1
[PATCH] hivex: Add byte runs for nodes and values
...9,6 +1898,8 @@ static void raise_closed (const char *) Noreturn;
pr " for (int i = 0; r[i] != NULL; ++i) free (r[i]);\n";
pr " free (r);\n"
| RLenType -> pr " rv = copy_type_len (len, t);\n"
+ | RLenNode -> pr " rv = copy_len (len);\n"
+ | RLenValue -> pr " rv = copy_len (len);\n"
| RLenTypeVal ->
pr " rv = copy_type_value (r, len, t);\n";
pr " free (r);\n"
@@ -1951,6 +2022,18 @@ copy_type_len (size_t len, hive_type t)
}
static value
+...
2019 Mar 12
9
[RFC PATCH V2 0/5] vhost: accelerate metadata access through vmap()
On Tue, Mar 12, 2019 at 10:59:09AM +0800, Jason Wang wrote:
>
> On 2019/3/12 ??2:14, David Miller wrote:
> > From: "Michael S. Tsirkin" <mst at redhat.com>
> > Date: Mon, 11 Mar 2019 09:59:28 -0400
> >
> > > On Mon, Mar 11, 2019 at 03:13:17PM +0800, Jason Wang wrote:
> > > > On 2019/3/8 ??10:12, Christoph Hellwig wrote:
> > >
2019 Mar 12
9
[RFC PATCH V2 0/5] vhost: accelerate metadata access through vmap()
On Tue, Mar 12, 2019 at 10:59:09AM +0800, Jason Wang wrote:
>
> On 2019/3/12 ??2:14, David Miller wrote:
> > From: "Michael S. Tsirkin" <mst at redhat.com>
> > Date: Mon, 11 Mar 2019 09:59:28 -0400
> >
> > > On Mon, Mar 11, 2019 at 03:13:17PM +0800, Jason Wang wrote:
> > > > On 2019/3/8 ??10:12, Christoph Hellwig wrote:
> > >