Thread (8 messages) flat view 8 messages, 3 authors, 2013-03-24

Re: [PATCH 1/1]core:Change a wrong explain about dev_get_by_name

From: Ben Hutchings <hidden>
Date: 2013-03-20 17:10:49

On Wed, 2013-03-20 at 08:32 -0700, Eric Dumazet wrote:
On Wed, 2013-03-20 at 17:33 +0800, tingwei liu wrote:
quoted
From 5d787e8c3725efa6af3036eeb52aba1905c70de9 Mon Sep 17 00:00:00 2001
From: root <redacted>
Date: Wed, 20 Mar 2013 17:39:59 +0800
Subject: [PATCH] Change a wrong explain about dev_get_by_name
No changelog ? This patch really needs a changelog.

I have no idea why we should document this function being not safe in
irq context.

Most part of networking stack is non safe in hard irq context.

Should we add a comment in front of all possible entry points ?
If they are wrongly documented as 'can be called from any context', yes.

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help