---
name: "sysfs_rename_link"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/sysfs_rename_link"
---

# sysfs\_rename\_link(9)

rename symlink in object's directory.

## NAME

sysfs\_rename\_link - rename symlink in object's directory.

## SYNOPSIS

**int sysfs\_rename\_link(struct kobject \*** *kobj***, struct kobject \*** *targ***, const char \*** *old***, const char \*** *new***);**

## ARGUMENTS

*kobj*

object we're acting for.

*targ*

object we're pointing to.

*old*

previous name of the symlink.

*new*

new name of the symlink.

## DESCRIPTION

A helper function for the common rename symlink idiom.

## COPYRIGHT
