---
name: "kobject_rename"
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_rename"
---

# kobject\_rename(9)

change the name of an object

## NAME

kobject\_rename - change the name of an object

## SYNOPSIS

**int kobject\_rename(struct kobject \*** *kobj***, const char \*** *new\_name***);**

## ARGUMENTS

*kobj*

object in question.

*new\_name*

object's new name

## DESCRIPTION

It is the responsibility of the caller to provide mutual exclusion between two different calls of kobject\_rename on the same kobject and to ensure that new\_name is valid and won't conflict with other kobjects.

## COPYRIGHT
