This fixes #8297.  The functions now exist to create and modify devicefunctions.