On Saturday 28 June 2008, Bruce Moffat wrote: > I am looking for a way to test whether I am running in a bottom half > context or user context. There are kernel functions which may be called > from both user and bottom half contex. For eg, tcp_transmit_skb, may be > called from user context for first time transmission of a packet or from > the timer bottom half in case of retransmission. Is there a way to check > within that function whether it is currently running in user / bottom half > context? > While you there are ways to find out in which context you run and then act accordingly, it seems that is not recommended to so: http://lwn.net/Articles/274695/ Regards, tavi -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ