---
name: "kobject_get_path"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/kobject_get_path"
---

# kobject\_get\_path(9)

generate and return the path associated with a given kobj and kset pair.

## NAME

kobject\_get\_path - generate and return the path associated with a given kobj and kset pair.

## SYNOPSIS

**char \* kobject\_get\_path(struct kobject \*** *kobj***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*kobj*

kobject in question, with which to build the path

*gfp\_mask*

the allocation type used to allocate the path

## DESCRIPTION

The result must be freed by the caller with **kfree**.

## COPYRIGHT
