---
name: "sysfs_rename_link_ns"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sysfs_rename_link_ns"
---

# sysfs\_rename\_link\_ns(9)

rename symlink in object's directory.

## NAME

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

## SYNOPSIS

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

## 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.

*new\_ns*

new namespace of the symlink.

## DESCRIPTION

A helper function for the common rename symlink idiom.

## COPYRIGHT
