mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
FS / libfs: Implement simple_write_to_buffer
It will be used in suspend code and serves as an easy wrap around copy_from_user. Similar to simple_read_from_buffer, it takes care of transfers with proper lengths depending on available and count parameters and advances ppos appropriately. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
This commit is contained in:
parent
bc6a0cbd57
commit
6a727b43be
2 changed files with 37 additions and 0 deletions
35
fs/libfs.c
35
fs/libfs.c
Loading…
Add table
Add a link
Reference in a new issue