Linux bluetooth development
 help / color / mirror / Atom feed
From: Max Krasnyansky <maxk@qualcomm.com>
To: Marcel Holtmann <marcel@rvs.uni-bielefeld.de>
Cc: Stephen Crane <steve.crane@rococosoft.com>,
	Philip Blundell <pb@nexus.co.uk>,
	BlueZ Mailing List <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Re: Version 3 libs/utils
Date: Wed, 23 Jul 2003 09:27:41 -0700	[thread overview]
Message-ID: <5.1.0.14.2.20030723092053.0983b3c0@unixmail.qualcomm.com> (raw)
In-Reply-To: <1058909609.2854.68.camel@pegasus>

At 02:33 PM 7/22/2003, Marcel Holtmann wrote:
>Hi Max,
>
>> >Should we keep the kernel inquiry interface? The kernel inside inquiry
>> >cache is a nice thing and works in the background like a charm :)
>> You mean HCI_INQUIRY ioctl, right ? I'm not sure about that one.
>> We'll certainly keep inquiry cache. Cache doesn't really depend on ioctl.
>
>yes, I meant the ioctl. The kernel inquiry cache is a nice thing and
>maybe we should provide read only access to it from the userspace.
Sure. We already have it in 2.6
        cat /proc/bluetooth/hci/0/inquiry_cache

(btw I'll move it to sysfs)

>> >What about the idea to integrate the inquiry into the library or into
>> >the Bluetooth master daemon.
>> I don't see a need for forwarding inquiry results from a daemon. It can be 
>> done in a simple way in the kernel, just like I explained in prev emails
>> (ie kernel parsing hci_inquiry command).
>
>My concern is the HCI_INQUIRY ioctl, because it don't really fits the
>possibilities and specification details of the inquiry command. 
It should go then :)

>But I don't know what the best way is here and with Bluetooth 1.2 we can also
>get the RSSI from an inquiry result.
>
>At the moment I think additional ioctl's for accessing the inquiry cache
>will make it possible to use the inquiry command in a more dynamic way:
>
>        - get number of inquiry cache entries
>        - copy first n inquiry cache entries to my buffer
>        - flush inquiry cache
>
>Comments? Ideas?
#1 and 2 are already supported in 2.6 (via /proc/.../inquiry_cache).
We could make 'echo 0 > /proc/.../inquiry_cache' flush the cache.

Max

      reply	other threads:[~2003-07-23 16:27 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-01  0:03 Version 3 libs/utils Max Krasnyansky
2003-07-02  1:01 ` [Bluez-devel] " Marcel Holtmann
2003-07-02  8:34   ` Stephen Crane
2003-07-02 16:29     ` [Bluez-devel] " Marcel Holtmann
2003-07-18  0:19       ` Max Krasnyansky
2003-07-18  0:10     ` Max Krasnyansky
2003-07-18  0:33       ` [Bluez-devel] " Marcel Holtmann
2003-07-22  0:32         ` Max Krasnyansky
2003-07-22 10:06           ` Marcel Holtmann
2003-07-18  0:00   ` Max Krasnyansky
2003-07-18  0:51     ` [Bluez-devel] " Marcel Holtmann
2003-07-22  0:44       ` Max Krasnyansky
2003-07-22 10:40         ` Marcel Holtmann
2003-07-22 20:05           ` Max Krasnyansky
2003-07-22 21:33             ` Marcel Holtmann
2003-07-23 16:27               ` Max Krasnyansky [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=5.1.0.14.2.20030723092053.0983b3c0@unixmail.qualcomm.com \
    --to=maxk@qualcomm.com \
    --cc=bluez-devel@lists.sourceforge.net \
    --cc=marcel@rvs.uni-bielefeld.de \
    --cc=pb@nexus.co.uk \
    --cc=steve.crane@rococosoft.com \
    /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