diff options
author | midipix <writeonce@midipix.org> | 2016-10-25 17:03:43 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:54 -0500 |
commit | 9a382d263f4ace806724dcf4c9d96d7180c234f8 (patch) | |
tree | 4209cfc6137d885f12aa5511d88fc143c38779bf | |
parent | f006c46ea91111f1df8bf0ce7cf457e22f4c26f7 (diff) | |
download | perk-9a382d263f4ace806724dcf4c9d96d7180c234f8.tar.bz2 perk-9a382d263f4ace806724dcf4c9d96d7180c234f8.tar.xz |
driver: internals: error trace support: added unit context marks.
-rw-r--r-- | src/internal/perk_driver_impl.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/internal/perk_driver_impl.h b/src/internal/perk_driver_impl.h index f3af901..843d3f1 100644 --- a/src/internal/perk_driver_impl.h +++ b/src/internal/perk_driver_impl.h @@ -29,6 +29,8 @@ struct pe_driver_ctx_impl { struct pe_io_ctx ioctx; struct pe_common_ctx cctx; struct pe_driver_ctx ctx; + const struct pe_unit_ctx * euctx; + const char * eunit; struct pe_error_info ** errinfp; struct pe_error_info ** erricap; struct pe_error_info * erriptr[64]; @@ -57,4 +59,16 @@ static inline struct pe_driver_ctx_impl * pe_get_driver_ictx( return 0; } +static inline void pe_driver_set_ectx( + const struct pe_driver_ctx * dctx, + const struct pe_unit_ctx * uctx, + const char * unit) +{ + struct pe_driver_ctx_impl * ictx; + + ictx = pe_get_driver_ictx(dctx); + ictx->euctx = uctx; + ictx->eunit = unit; +} + #endif |