Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Can WTP be used anywhere a (struct nw_work_thread *) is required?: (3 Items)
   
Can WTP be used anywhere a (struct nw_work_thread *) is required?  
In an interrupt handling thread can I use m_getcl() and m_freem() instead of m_getcl_wtp() and m_freem_wtp() 
respectively?

Similarly for NW_SIGLOCK() and NW_SIGLOCK_P(). 

Looking at different driver source there is inconsistent usage of these routines in interrupt handling threads, 
sometimes the wtp pointer form is used in other places the WTP form is used.

What are the rules for using WTP?
Re: Can WTP be used anywhere a (struct nw_work_thread *) is required?  
Hi John,
It actually doesn't matter currently - everywhere the wtp is passed to the driver it has come from the WTP macro.

I would suggest that it's probably best to use the wtp passed in to the interrupt handling threads, but there is 
currently no situation where it is actually required.

Regards,
Nick.
Re: Can WTP be used anywhere a (struct nw_work_thread *) is required?  
Hi Nick,

Just what I needed - thanks for clarifying.

Regards,
John