search for: tmp_buf

Displaying 2 results from an estimated 2 matches for "tmp_buf".

Did you mean: jmp_buf
2013 Mar 15
0
[PATCH 4.1] Add DomU xz kernel decompression
...+static int _xc_try_lzma_decode( + struct xc_dom_image *dom, void **blob, size_t *size, + lzma_stream *stream, lzma_ret ret, const char *what) { - lzma_stream stream = LZMA_STREAM_INIT; - lzma_ret ret; lzma_action action = LZMA_RUN; unsigned char *out_buf; unsigned char *tmp_buf; @@ -201,14 +200,13 @@ static int xc_try_lzma_decode( if ( dom->kernel_size == 0) { - DOMPRINTF("LZMA: Input is 0 size"); + DOMPRINTF("%s: Input is 0 size", what); return -1; } - ret = lzma_alone_decoder(&stream, 128*1024*1024)...
2019 Apr 29
1
[RFC-PATCH] Introducing virtio-example.
...---------- +// sysfs - give user access to driver +//----------------------------------------------------------------------------- + +static ssize_t +virtio_buf_store(struct device *dev, struct device_attribute *attr, + const char *buf, size_t count) +{ + char tmp_buf[MAX_DATA_SIZE]; + int retval; + struct scatterlist sg_in, sg_out; + struct scatterlist *request[2]; + /* cast dev into a virtio_device */ + struct virtio_device *vdev = dev_to_virtio(dev); + struct virtexample_info *vi = vdev->priv; + + /* copy the user buffer since it is a const buf...