4.2.8 d_path

string d_path(struct path *ptr)

The d_path function creates a string containing the absolute pathname of the struct path that is pointed to by ptr. The returned string is allocated out of scratch memory and is therefore valid only for the duration of the clause. If insufficient scratch memory is available, d_path does not execute and an error is generated.