---
name: "ccw_device_get_chp_desc"
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/ccw_device_get_chp_desc"
---

# ccw\_device\_get\_chp\_desc(9)

return newly allocated channel-path descriptor

## NAME

ccw\_device\_get\_chp\_desc - return newly allocated channel-path descriptor

## SYNOPSIS

**struct channel\_path\_desc \* ccw\_device\_get\_chp\_desc(struct ccw\_device \*** *cdev***, int** *chp\_idx***);**

## ARGUMENTS

*cdev*

device to obtain the descriptor for

*chp\_idx*

index of the channel path

## DESCRIPTION

On success return a newly allocated copy of the channel-path description data associated with the given channel path. Return **NULL** on error.

## AUTHOR

**Cornelia Huck** \<cornelia.huck@de.ibm.com\>

Author.

## COPYRIGHT
