Skip to contentSkip to conversation

using spin_lock in the extended iptables targert

DISCUSSION Anand S 1 participant 1 message Jun 6, 2002 netfilter

lore
Share & tools
lore

Anand S

author
#0 lore raw

i have written a new target for iptables
i write the captured packets to my device driver's buffer, to have proper access to the buffer i need to protect the addition and deletion of buffers

which of the follwing two functions( or any other) should be used for locking

spin_lock_irqsave()
spin_lock_bh()

any help or advice is appriciated
thanx

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com