'\" te .\" Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. .TH di_devlink_path 3DEVINFO "15 May 2008" "SunOS 5.11" "Device Information Library Functions" .SH NAME di_devlink_path, di_devlink_content, di_devlink_type \- get devlink attributes .SH SYNOPSIS .LP .nf \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-ldevinfo\fR [ \fIlibrary\fR... ] #include \fBconst char *\fR\fBdi_devlink_path\fR(\fBdi_devlink_t\fR \fIdevlink\fR); .fi .LP .nf \fBconst char *\fR\fBdi_devlink_content\fR(\fBdi_devlink_t\fR \fIdevlink\fR); .fi .LP .nf \fBint\fR \fBdi_devlink_type\fR(\fBdi_devlink_t\fR \fIdevlink\fR); .fi .SH PARAMETERS .sp .ne 2 .mk .na \fB\fIdevlink\fR\fR .ad .RS 11n .rt An opaque handle to a devlink. .RE .SH DESCRIPTION .sp .LP These functions return various attributes of a devlink. .SH RETURN VALUES .sp .LP The \fBdi_devlink_path()\fR function returns the absolute path of a devlink. On error, \fINULL\fR is returned and \fBerrno\fR is set to indicate the error. .sp .LP The \fBdi_devlink_content()\fR function returns the content of the symbolic link represented by \fIdevlink\fR. On error, \fINULL\fR is returned and \fBerrno\fR is set to indicate the error. .SH ERRORS .sp .LP These functions will fail if: .sp .ne 2 .mk .na \fB\fBEINVAL\fR\fR .ad .RS 10n .rt The \fIdevlink\fR argument is invalid. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Interface StabilityCommitted _ MT-LevelSafe .TE .SH SEE ALSO .sp .LP \fBdi_devlink_init\fR(3DEVINFO), \fBdi_devlink_walk\fR(3DEVINFO), \fBlibdevinfo\fR(3LIB), \fBmalloc\fR(3C), \fBattributes\fR(5)