Linux wireless drivers development
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Keir <keirlawson@gmail.com>
Cc: Andrey Yurovsky <andrey@cozybit.com>, linux-wireless@vger.kernel.org
Subject: Re: Listing established mesh connections
Date: Thu, 11 Dec 2008 18:05:03 +0100	[thread overview]
Message-ID: <1229015103.8081.30.camel@johannes.berg> (raw)
In-Reply-To: <e27b78a40812110639w212d4b72v3ad5d54246b191cf@mail.gmail.com> (sfid-20081211_153941_779852_BDFEDD1C)

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

On Thu, 2008-12-11 at 14:39 +0000, Keir wrote:
> Yea I had that thought, but I wasn't sure how many items there would
> be in that list, or whether there was a less than linear time way to
> do it.  I did look into the IW code, but i found it quite hard to
> follow through that back into libnl and from there back into the
> kernel.

Well, it's pretty much

rcu_read_lock()
list_for_each_entry_rcu(sta, &local->sta_list) {
	if (sta->sdata != mesh_sdata)
		continue;
	do something with sta
}
rcu_read_unlock();

I'd think.

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      parent reply	other threads:[~2008-12-11 17:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-10 15:13 Listing established mesh connections Keir
2008-12-10 15:28 ` Johannes Berg
     [not found]   ` <e27b78a40812110314w409a0294w1e73d40d9d34fac5@mail.gmail.com>
2008-12-11 13:55     ` Johannes Berg
2008-12-11 14:12       ` Johannes Berg
     [not found]       ` <e27b78a40812110639w212d4b72v3ad5d54246b191cf@mail.gmail.com>
2008-12-11 17:05         ` Johannes Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1229015103.8081.30.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=andrey@cozybit.com \
    --cc=keirlawson@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox