[gnome-bluetooth] What stuff in gnome-bluetooth does, and ideas for its future

Jim Bray jb at as220.org
Fri Jan 30 18:47:37 GMT 2004


 I don't know much about this area yet, so this may be useless
information, but there is a /proc/bluetooth (see below)
which contains among other things:


proc/1$cat /proc/bluetooth/hci/0/inquiry_cache 
C0:83:45:57:62:00 1 0 0 0x040250 0x390d 9624412

(see below for fields). I assume the name<->device pairing is
a usermode thing, thus not appropriate for handling in the kernel;
please correct me if I'm wrong.

 I agree that sockets should be in /tmp, or at any rate not in
/etc, which should be mountable read-only if desired.

Jim

static int  inq_seq_show(struct seq_file *seq, void *e)
{
	struct inquiry_entry *inq = e;
	struct inquiry_info  *info = &inq->info;

	seq_printf(seq, "%s %d %d %d 0x%.2x%.2x%.2x 0x%.4x %u\n",
batostr(&info->bdaddr), 
			info->pscan_rep_mode, info->pscan_period_mode, info->pscan_mode,
			info->dev_class[0], info->dev_class[1], info->dev_class[2],
			info->clock_offset, inq->timestamp);
	return 0;
}
/proc/bluetooth/:
total 0
dr-xr-xr-x    3 root     root            0 Jan 30 13:33 hci
-r--r--r--    1 root     root            0 Jan 30 13:33 l2cap
dr-xr-xr-x    2 root     root            0 Jan 30 13:33 rfcomm

/proc/bluetooth/hci:
total 0
dr-xr-xr-x    2 root     root            0 Jan 30 13:33 0

/proc/bluetooth/hci/0:
total 0
-r--r--r--    1 root     root            0 Jan 30 13:33 inquiry_cache

/proc/bluetooth/rfcomm:
total 0
-r--r--r--    1 root     root            0 Jan 30 13:33 dlc
-r--r--r--    1 root     root            0 Jan 30 13:33 sock
proc/1$






More information about the gnome-bluetooth mailing list