LIBKYREALTIME(3)

📦 version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

💅 LIBKYREALTIME(3) 💅

okay so bestie, welcome to the Library Functions Manual, and this one is literally a whole lil library of right-now system tea. No cap. 🍓


🎀 NAME 🎀

kdk_real_get_net_speed, kdk_real_get_cpu_temperature, kdk_real_get_disk_temperature, kdk_real_get_disk_rate, kdk_real_get_if_speed — 获取瞬时信息

(that last bit is Chinese and it's the vibe of the whole squad: grabbing the instantaneous info, like, right this second, no waiting around 💫)


🌈 SYNOPSIS 🌈

first things first, you gotta pull in the header:

#include <libkyrealtimeinfo.h>

then here's the whole friend group, exactly as they're declared:

extern float kdk_real_get_net_speed(const char *nc);

extern double kdk_real_get_cpu_temperature();

extern int kdk_real_get_disk_temperature(const char *name);

extern int kdk_real_get_disk_rate(const char *name);

extern float kdk_real_get_if_speed(const char *nc);

and don't forget to link it, or it's giving nothing:

-lkyrealtime

💖 Detailed Description 💖

so like, this library contains instantaneous information about the current system. that's it, that's the whole serve. it's the group chat that always knows what's happening right now, not five minutes ago. 🦋


⭐ RETURN VALUE ⭐

the return value is, generally speaking, specific to the individual function called. so like, read the one you actually called, bestie, don't assume they all hand you the same thing. each one is its own main character. 💀


👑 CONFORMING TO 👑

these functions are as per the withdrawn POSIX.1e draft specification. (withdrawn, periodt — it's giving vintage, we still love her. 💜)

and heads up: the following functions are Linux extensions:

  • kdk_real_get_net_speed()
  • kdk_real_get_cpu_temperature()
  • kdk_real_get_disk_temperature()
  • kdk_real_get_disk_rate()
  • kdk_real_get_if_speed()

so yeah, all five of the homies are Linux-only energy. 🌈


🔥 SEE ALSO 🔥

go read their individual pages, they each get their own spotlight:


and that's the whole page, bestie 🫶 this came to you from the Linux Programmer's Manual, dated Tue Sep 19 2023, filed under LIBKYREALTIME(3). go get that instantaneous tea. mwah. 💋✨

📦 where this page comes from