Name

__of_prop_dup — Copy a property into a new dynamic property

Synopsis

struct property * __of_prop_dup (const struct property * prop,
 gfp_t allocflags);
 

Arguments

prop

Property to copy

allocflags

Allocation flags for memory allocations

Description

Copy prop into a new property. Memory is allocated for all objects associated with the new property; the new property does not contain any pointers to the contents of old property.

The typical value for allocflags is GFP_KERNEL.

The new property's OF_DYNAMIC flag is set so dynamic properties can be identified.

Return

Pointer to the new property or NULL on memory allocation error.