Lines Matching refs:device

39  *	_adddevtabrec()		Add a record to the device table
40 * _putdevtabrec() Write a record to the device table
41 * _moddevtabrec() Modify a device-table record
42 * _rmdevtabrec() Remove a device-table record
43 * _rmdevtabattrs() Remove attributes from a device-table record
44 * oam_devtab File descriptor of the open device table
81 * TDTABNM Name of the temporary device table (in the
92 * lkdevtab Locks the device table
93 * unlkdevtab Unlocks the device table
94 * mkdevtabent Builds a device-table entry from the alias and the
96 * opennewdevtab Opens a new device table (as a temp file)
97 * mknewdevtab Makes the temp device table the new devtab
98 * rmnewdevtab Remove the temporary device table and free space
144 * Generates a temporary device-table name from the existing
145 * device table name (in the same directory) and opens that
147 * containing the temp device table's name at the place referenced
162 char *oldname; /* Ptr to the device-table's name */
195 * Build the name of the temp device table and
210 * Free the space containing the device table's name.
223 * Unlink the temp device table and free the memory allocated to
234 rmnewdevtab(char *tempname) /* Filename of new device table */
252 * Make the temporary device-table the new system device table
263 * of the device-table more than once. Done so that we don't
270 char *devtabname; /* Ptr to the device table's name */
273 /* Get the device table's pathname */
279 /* Make the temp file the real device table */
287 /* Free the device table's name */
301 * Lock the device table for writing. If it isn't available, it waits
305 * o_mode The open() mode to use when opening the device table
323 /* Close the device table (if it's open) */
326 /* Open the device table for read/append */
331 * Lock the device table (for writing). If it's not
370 * Unlock the locked device table.
410 * alias The alias being added to the device table
485 /* Specifying the char device path? */
505 /* Specifying the block device path? */
623 * Write a device table record containing the information in the struct
708 /* Write the character device ("cdevice" attribute) */
712 /* Write the block device ("bdevice" attribute) */
751 * This function adds a record to the device table. That record will
758 * alias The alias of the device whose description is being
759 * added to the device table.
761 * defining the device whose description is being added.
770 char *alias, /* Alias to add to the device table */
771 char **attrval) /* Attributes for that device */
778 /* Validate the device alias. Error (EINVAL) if it's not valid */
785 * Lock the device table. This only returns if the table is locked or
797 _freedevtabent(devtabent); /* Free device table info */
821 /* Unlock and close the device table */
829 * int _moddevtabrec(device, attrval)
830 * char *device
833 * This function modifies the description for the specified device
838 * device The name of the device whose description
849 char *device, /* Device to modify */
853 FILE *fd; /* File ptr, new device table */
864 /* Lock the device table */
872 if (ent = _getdevrec(device)) {
875 if (chg = mkdevtabent(device, attrval)) {
916 * of attributes for the device. If it was found, just
924 * device's list of attributes
956 /* Open the new device table */
977 * new system device table. Otherwise, just remove the
989 /* Free the changed device structure */
999 /* Finished. Unlock the device table and quit */
1005 * int _rmdevtabrec(device)
1006 * char *device
1008 * This function removes the record in the device table for the specified
1009 * device.
1012 * device The device (alias, cdevice, bdevice, pathname, or link to one)
1020 _rmdevtabrec(char *device) /* Device to remove */
1031 if (rment = _getdevrec(device)) {
1054 * int _rmdevtabattrs(device, attributes, notfounds)
1055 * char *device
1059 * Remove the specified attributes from the specified device. The
1060 * device is specified by <device>, <attributes> is the address of
1062 * to remove from the device, and <notfounds> is the address of a
1065 * defined for the device <device>.
1068 * device The device from which attributes are to be removed
1074 * defined for the specified device.
1087 char *device, /* Device to modify */
1119 /* Lock the device table */
1123 /* Is there a record for the requested device? */
1124 if (modent = _getdevrec(device)) {
1133 * Modify the device description, removing the requested
1196 * If the requested attribute wasn't defined for the device,
1252 * write the new device table
1257 /* Open the new device table */
1279 * new system device table. Otherwise, just remove the
1308 /* Free the resources alloc'ed for <device>'s entry */
1312 /* _getdevrec(device) failed */
1317 /* Unlock the device table */