iscsi_context_new(3)

iscsi_context_new3

Create struct iscsi_context.

Usage

struct iscsi_context * iscsi_context_new (void);

Arguments

void

no arguments

Overview

The default logging level (LIBISCSI_LOG_PRIORITY_DEFAULT) is LIBISCSI_LOG_PRIORITY_WARNING which means only warning and error message will be forward to log handler function. The default log handler function will print log message to STDERR, to change so, please use iscsi_context_log_func_set to set your own log handler, check manpage libopeniscsiusr.h(3) for detail.

Return

Pointer of 'struct iscsi_context'. Should be freed by iscsi_context_free.

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From open-iscsi 2.1.13-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.