/** * crw_inject : Initiate the artificial CRW inject * @crw: The data which needs to be injected as new CRW. * * The CRW handler is called, which will use the provided artificial * data instead of the CRW from the underlying hardware. * * Return: 0 on success
*/ staticint crw_inject(struct crw *crw)
{ int rc = 0; struct crw *copy; unsignedlong flags;
copy = kmemdup(crw, sizeof(*crw), GFP_KERNEL); if (!copy) return -ENOMEM;
/** * stcrw_get_injected: Copy the artificial CRW data to CRW struct. * @crw: The target CRW pointer. * * Retrieve an injected CRW data. Return 0 on success, 1 if no * injected-CRW is available. The function reproduces the return * code of the actual STCRW function.
*/ int stcrw_get_injected(struct crw *crw)
{ int rc = 1; unsignedlong flags;
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.