tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: struct ifnet and ifaddr handling [was: Re: Making global variables of if.c MPSAFE]
On Wed, Nov 26, 2014 at 2:43 PM, Masao Uebayashi <uebayasi%gmail.com@localhost> wrote:
> On Wed, Nov 26, 2014 at 1:02 PM, Ryota Ozaki <ozaki-r%netbsd.org@localhost> wrote:
>> Here is a latest patch:
>> http://www.netbsd.org/~ozaki-r/watchdog-callout-per-if.diff
>
> OK from me.
>
>> So my remaining concern is whether we can embed callout_t with _KERNEL
>> which I proposed earlier. If the answer is no, the above patch that
>> uses a pointer of struct callout is okay for me.
>
> As far as I read netstat(1) (doing kvm_read(3) with sizeof(struct
> ifnet)), with/without struct callout * works, because netstat(1)
> doesn't read that member anyway.
>
> Maybe putting #ifdef _KERNEL with a XXX comment like /* XXX kvm(3) */
> is good enough for now.
I'll change so and commit the patch.
Thanks a lot!
ozaki-r
Home |
Main Index |
Thread Index |
Old Index