getsetattr function

Attribute setting by reference