---
name: "kobject_set_name"
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_set_name"
---

# kobject\_set\_name(9)

Set the name of a kobject

## NAME

kobject\_set\_name - Set the name of a kobject

## SYNOPSIS

**int kobject\_set\_name(struct kobject \*** *kobj***, const char \*** *fmt***,** *...***);**

## ARGUMENTS

*kobj*

struct kobject to set the name of

*fmt*

format string used to build the name

*...*

variable arguments

## DESCRIPTION

This sets the name of the kobject. If you have already added the kobject to the system, you must call **kobject\_rename** in order to change the name of the kobject.

## COPYRIGHT
