/* * Each test that provides a kunit private test structure, place a test id * here and point the kunit->priv to an embedded struct xe_test_priv.
*/ enum xe_test_priv_id {
XE_TEST_LIVE_DMA_BUF,
XE_TEST_LIVE_MIGRATE,
};
/** * struct xe_test_priv - Base class for test private info * @id: enum xe_test_priv_id to identify the subclass.
*/ struct xe_test_priv { enum xe_test_priv_id id;
};
#define XE_TEST_DECLARE(x) x #define XE_TEST_ONLY(x) unlikely(x)
/** * xe_cur_kunit_priv - Obtain the struct xe_test_priv pointed to by * current->kunit->priv if it exists and is embedded in the expected subclass. * @id: Id of the expected subclass. * * Return: NULL if the process is not a kunit test, and NULL if the * current kunit->priv pointer is not pointing to an object of the expected * subclass. A pointer to the embedded struct xe_test_priv otherwise.
*/ staticinlinestruct xe_test_priv *
xe_cur_kunit_priv(enum xe_test_priv_id id)
{ struct xe_test_priv *priv;
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.