[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v3] pkl: Remove global state from IOS
From: |
Mohammad-Reza Nabipoor |
Subject: |
Re: [PATCH v3] pkl: Remove global state from IOS |
Date: |
Fri, 24 Dec 2021 15:13:08 +0330 |
On Fri, Dec 24, 2021 at 03:08:27PM +0330, Mohammad-Reza Nabipoor wrote:
>
> Yes, I don't like it either! But because of `data` pointers (which are
> specific to instances of `libpoke`), we have to.
>
> Do you have any better idea?
> (I thought about removing `data` from the `struct ios_dev_if`, and keep it
> separate, but this means `struct pk_iod_if` and `struct ios_dev_if` will not
> share the same physical layout).
>
And we use `data` field, only for `sub` IOD.
What about keeping that only iod_if in the `ios_context`?
- Re: [PATCH] pkl: Remove global state from IOS, (continued)
[PATCH v2 1/2] pkl: Add user_data in IO device API, Mohammad-Reza Nabipoor, 2021/12/23
[PATCH v4] pkl: Remove global state from IOS, Mohammad-Reza Nabipoor, 2021/12/28
Re: [PATCH v4] pkl: Remove global state from IOS, Jose E. Marchesi, 2021/12/28
Re: [PATCH v2 1/2] pkl: Add user_data in IO device API, Jose E. Marchesi, 2021/12/23