seq_buf.c (757fa80f4edca010769f3f8d116c19c85f27e817) seq_buf.c (9dbbc3b9d09d6deba9f3b9e1d5b355032ed46a75)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * seq_buf.c
4 *
5 * Copyright (C) 2014 Red Hat Inc, Steven Rostedt <srostedt@redhat.com>
6 *
7 * The seq_buf is a handy tool that allows you to pass a descriptor around
8 * to a buffer that other functions can write to. It is similar to the

--- 275 unchanged lines hidden (view full) ---

284 }
285 }
286 seq_buf_commit(s, res);
287
288 return res;
289}
290
291/**
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * seq_buf.c
4 *
5 * Copyright (C) 2014 Red Hat Inc, Steven Rostedt <srostedt@redhat.com>
6 *
7 * The seq_buf is a handy tool that allows you to pass a descriptor around
8 * to a buffer that other functions can write to. It is similar to the

--- 275 unchanged lines hidden (view full) ---

284 }
285 }
286 seq_buf_commit(s, res);
287
288 return res;
289}
290
291/**
292 * seq_buf_to_user - copy the squence buffer to user space
292 * seq_buf_to_user - copy the sequence buffer to user space
293 * @s: seq_buf descriptor
294 * @ubuf: The userspace memory location to copy to
295 * @cnt: The amount to copy
296 *
297 * Copies the sequence buffer into the userspace memory pointed to
298 * by @ubuf. It starts from the last read position (@s->readpos)
299 * and writes up to @cnt characters or till it reaches the end of
300 * the content in the buffer (@s->len), which ever comes first.

--- 97 unchanged lines hidden ---
293 * @s: seq_buf descriptor
294 * @ubuf: The userspace memory location to copy to
295 * @cnt: The amount to copy
296 *
297 * Copies the sequence buffer into the userspace memory pointed to
298 * by @ubuf. It starts from the last read position (@s->readpos)
299 * and writes up to @cnt characters or till it reaches the end of
300 * the content in the buffer (@s->len), which ever comes first.

--- 97 unchanged lines hidden ---