[dtrace-discuss] clearing element from array of struct

Brendan Gregg
Sun, 03 Jul 2005 12:59:11 -0000

G''Day Mike,

On Sat, 2 Jul 2005, Michael Shapiro wrote:
[...]
> >    start[this->dev, this->blk] = 0;
> >
> > I get,
> >
> >    in action list: operands have incompatible types: "struct
ioinfo" = "int"
> >
> > would zero''ing out each element one by one free memory like
one would
> > hope, or have I just missed the right syntax? (I may have missed the
> > syntax - it''s almost 5am :).
> >
> > thanks,
> >
> > Brendan
>
> We don''t have one yet -- this is on my list of things to fix in
the
> near future.  It will either be assignment to zero or an undef() function.

Ahh - thanks! I didn''t miss something silly :)

Brendan