seq_put_decimal_ull_width(9)
π seq_put_decimal_ull_width(9) β from the Kernel API Manual, bestie β¨
okay so real talk, this one lives in the Kernel API Manual and it's lowkey a little icon, let me tell you everything π«Ά
πΈ NAME πΈ
seq_put_decimal_ull_width β a helper routine for putting decimal numbers without the rich format of printf(). and like, only unsigned long long is supported, periodt π
β¨ SYNOPSIS β¨
void seq_put_decimal_ull_width (struct seq_file *m , const char
*delimiter , unsigned long long num , unsigned int width );
π ARGUMENTS π
mβ theseq_filethat identifies the buffer you're writing your data into, iykyk π¦delimiterβ a string that gets printed before the number. it's giving opening act energy β¨numβ the number. that's it. that's the whole vibe π’widthβ a minimum field width, so your numbers stay looking cute and aligned π
π DESCRIPTION π
so this routine will put strlen(delimiter) + number into seq_filed π
and the way that it's very quick when you show lots of numbers?? obsessed. genuinely main character energy for number-heavy output π₯
but ngl, in usual cases it will be better to use seq_printf. it's easier to read. fr fr, no cap π
like, speed is great and all, but readability is also a vibe. choose wisely bestie π«Ά
π SEE ALSO π
kernel file ./fs/seq_file.c plus this whole friend group:
seq_open(9), seq_read(9), seq_lseek(9), seq_release(9), seq_escape_mem(9), seq_mangle_path(9), seq_path(9), seq_file_path(9), seq_put_hex_ll(9), seq_write(9), seq_pad(9), seq_hlist_start(9), seq_hlist_start_head(9), seq_hlist_next(9), seq_hlist_start_rcu(9), seq_hlist_start_head_rcu(9), seq_hlist_next_rcu(9), seq_hlist_start_percpu(9), seq_hlist_next_percpu(9)
and that's the whole page, bestie π§π this edition came from ./fs, dated October 2026, in the Kernel API Manual β go forth and print your decimals, you absolute icon βπ
π¦ 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