.TH "iscsi_context_new" 3 "iscsi_context_new" "October 2022" "API Manual" LINUX
.SH NAME
iscsi_context_new \- Create struct iscsi_context.
.SH SYNOPSIS
.B "struct iscsi_context *" iscsi_context_new
.BI "(" void ");"
.SH ARGUMENTS
.IP "void" 12
no arguments
.SH "DESCRIPTION"

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
\fBiscsi_context_log_func_set\fP to set your own log handler, check manpage
libopeniscsiusr.h(3) for detail.
.SH "RETURN"
Pointer of 'struct iscsi_context'. Should be freed by
\fBiscsi_context_free\fP.