simple_read_from_buffer(9)
β¨ NAME β¨
bestie, welcome to the simple_read_from_buffer(9) page from the Kernel API Manual β hereβs the tea: simple_read_from_buffer copies data from the buffer to user space π
πΈ SYNOPSIS πΈ
ssize_t simple_read_from_buffer (void __user *to , size_t count , loff_t
*ppos , const void *from , size_t available );
π ARGUMENTS π
toβ the user space buffer to read to, aka where the data is going πcountβ the maximum number of bytes to read, like the byte budget bestie π«Άpposβ the current position in the buffer, the little βwhere are weβ pointer β¨fromβ the buffer to read from, the source of the data π¦availableβ the size of the buffer, so everyone knows how much room weβre working with πΈ
π DESCRIPTION π
okay so simple_read_from_buffer reads up to count bytes from the buffer from at offset ppos into the user space address starting at to. literally the whole vibe is βcopy data from the buffer to user spaceβ β¨
On success, the number of bytes read is returned and the offset ppos is advanced by this number, or negative value is returned on error. no cap, those are the rules π
π¦ SEE ALSO π¦
Kernel file ./fs/libfs.c and these icon functions:
simple_offset_init(9)simple_offset_add(9)simple_offset_remove(9)simple_offset_rename(9)simple_offset_rename_exchange(9)simple_offset_destroy(9)offset_dir_llseek(9)offset_readdir(9)simple_rename_timestamp(9)simple_setattr(9)simple_write_end(9)simple_write_to_buffer(9)memory_read_from_buffer(9)generic_encode_ino32_fh(9)generic_fh_to_dentry(9)generic_fh_to_parent(9)simple_fsync_noflush(9)simple_fsync(9)generic_check_addressable(9)simple_get_link(9)generic_ci_d_compare(9)generic_ci_d_hash(9)generic_ci_match(9)generic_set_sb_d_ops(9)inode_maybe_inc_iversion(9)inode_query_iversion(9)simple_inode_init_ts(9)path_from_stashed(9)simple_start_creating(9)
xoxo, your kernel bestie π
β source/version: ./fs, date: October 2026 π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms