fp_get_path Kernel Service

Purpose

Returns the full path name of the file referenced by the fp parameter.

Syntax

    #include <sys/types.h>
    #include <sys/errno.h>

    int
    fp_get_path(struct file     *fp,
                int             flags,
                char            *path,
                size_t          size)

Parameters

fp
Points to a file structure that is returned by the fp_open or fp_opendev kernel service.
flags
No flags are defined; this parameter must be 0.
path
Points to a buffer where the file name is returned.
size
Specifies the size of the path buffer.

Description

The fp_get_path kernel service provides a method to find a path name from a file structure pointer.

Execution environment

The fp_get_path kernel service can be called only from the process environment.

Return values

0
Indicates a successful operation.
EINVAL
Invalid fp or path argument, or the fp parameter does not refer to a DTYPE_VNODE file structure.