iscsi_context_log_func_set(3)

πŸ¦‹ NAME πŸ¦‹

iscsi_context_log_func_set β€” set log handler function. This is the iscsi_context_log_func_set(3) page from the API Manual, bestie, and it’s lowkey iconic πŸ’…

✨ SYNOPSIS ✨

void iscsi_context_log_func_set (struct iscsi_context *ctx, void
       (*log_func) (struct iscsi_context *ctx, int priority, const char *file,
       int line, const char *func_name, const char *format, va_list args));

πŸŽ€ ARGUMENTS πŸŽ€

  • ctx β€” pointer to struct iscsi_context. Major warning, bestie: if this pointer is NULL, your program will be terminated by assert. Like, literally yeeted by an assert πŸ’€
  • log_func β€” pointer to the log handler function. This is your custom logging bestie 🫢

🌈 DESCRIPTION 🌈

Okay so the whole point is set custom log handler. That handler gets invoked when a log message is equal or more important(less value) than the log priority setting. For detail usage, please check the manpage libopeniscsiusr.h(3). Iykyk ✨

πŸ‘‘ RETURN πŸ‘‘

void


Signed with API Manual energy, dated September 2026, and honoring that footer label iscsi_context_log_func_iscsi_context_log_func_set(3) β€” bye bestie, slay responsibly πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from