befs_bt_read_node(9)
π NAME π
okay so bestie, this is the befs_bt_read_node(9) page from the Kernel API Manual β and she is that girl for reading in a btree node and converting it to cpu byteorder. π
β¨
befs_bt_read_node β read in btree node and convert to cpu byteorder. π
β¨ SYNOPSIS β¨
the way that this signature pulls up is literally:
int befs_bt_read_node (struct super_block *sb , const befs_data_stream
*ds , struct befs_btree_node *node , befs_off_t node_off );
π ARGUMENTS π
okay so these are the four besties she takes:
sbβ filesystem superblock πΎdsβ datastream to read from πnodeβ buffer in which to place the btree node π§Ίnode_offβ starting offset (in bytes) of the node indsπ
πΈ DESCRIPTION πΈ
she calls befs_read_datastream to read in the indicated btree node, then makes sure its header fields are in cpu byteorder, byteswapping if necessary. π¦ no cap, that's the whole job.
π¨ NOTE π¨
bestie,node->bhmust beNULLwhen this function is called the first time. Don't forgetbrelse(node->bh)after last call. π
On success, returns BEFS_OK and *node contains the btree node that starts at node_off, with the node->head fields in cpu byte order. π
On failure, BEFS_ERR is returned. π
π₯ SEE ALSO π₯
Kernel file ./fs/befs/btree.c β plus these lil legends right here:
befs_bt_read_super(9)befs_btree_find(9)befs_find_key(9)befs_btree_read(9)befs_btree_seekleaf(9)befs_leafnode(9)befs_bt_keylen_index(9)befs_bt_valarray(9)befs_bt_keydata(9)befs_bt_get_key(9)befs_compare_strings(9)
that's the tea, bestie β source/version ./fs/befs, dated October 2026, for befs_bt_read_node(9). mwah ππ«Ά periodt.
π¦ 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