// SPDX-License-Identifier: GPL-2.0+ /* * PCI Hot Plug Controller Driver for System z * * Copyright 2012 IBM Corp. * * Author(s): * Jan Glauber <jang@linux.vnet.ibm.com>
*/
/* * If we can't get the zdev->state_lock the device state is * currently undergoing a transition and we bail out - just * the same as if the device's state is not configured at all.
*/ if (!mutex_trylock(&zdev->state_lock)) return rc;
/* We can reset only if the function is configured */ if (zdev->state != ZPCI_FN_STATE_CONFIGURED) goto out;
staticint get_adapter_status(struct hotplug_slot *hotplug_slot, u8 *value)
{ /* if the slot exists it always contains a function */
*value = 1; return 0;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.