Skip to contentSkip to conversation

question on btusb_open()

DISCUSSION Oliver Neukum 2 participants 3 messages Aug 19, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

if this function is reentered there's a race with the error path. Can it be reentered?

Regards
Oliver

maintainer
#1 lore raw

Hi Oliver,

Quoted 2 lines

if this function is reentered there's a race with the error path. Can it be reentered?

no. The Bluetooth core will protect against it. The open callback will be triggered by "hciconfig hci0 up" or hcid/bluetoothd.

Regards

Marcel

#2 lore raw

Am Dienstag 19 August 2008 14:36:14 schrieben Sie:

Quoted 7 lines

Hi Oliver,

Quoted 2 lines

if this function is reentered there's a race with the error path. Can it be reentered?

no. The Bluetooth core will protect against it. The open callback will be triggered by "hciconfig hci0 up" or hcid/bluetoothd.

Good. I can see no further obvious bugs in btusb. I am going on to do power management for it.

Regards
Oliver