Content-Type: multipart/mixed; boundary="===============1958169766405455577==" MIME-Version: 1.0 From: James Prestwood Subject: Re: [PATCH v2 1/2] wiphy: add wiphy_radio_work_is_running Date: Mon, 05 Apr 2021 14:52:09 -0700 Message-ID: <0313c15d3f9152a81b8dc7960af3bc90d2fcc834.camel@gmail.com> In-Reply-To: <6354229b-ba1a-1bcf-7e1a-e13bce169e8c@gmail.com> List-Id: To: iwd@lists.01.org --===============1958169766405455577== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Mon, 2021-04-05 at 16:48 -0500, Denis Kenzior wrote: > Hi James, > = > On 4/5/21 4:26 PM, James Prestwood wrote: > > This provides a way to know if a work item is actually running > > vs only been queued and waiting to run. > > --- > > src/wiphy.c | 7 +++++++ > > src/wiphy.h | 1 + > > 2 files changed, 8 insertions(+) > > = > = > > = > > } > > = > > +bool wiphy_radio_work_is_running(struct wiphy *wiphy, uint32_t id) > > +{ > > + struct wiphy_radio_work_item *item =3D l_queue_peek_head(wiphy- > > >work); > > + > > + return item->id =3D=3D id; > = > Can item be null? Yeah, it can indeed. > = > > +} > > + > = > Regards, > -Denis --===============1958169766405455577==--