seq_put_decimal_ull_width(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the seq_file that 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