Re: [Consult] Why need we call device_remove_file() firstly beforecall device_unregister() ?

From: Greg Kroah-Hartman
Date: Sun May 19 2013 - 22:20:32 EST


On Mon, May 20, 2013 at 10:12:41AM +0800, Chen Gang wrote:
> I mean that if no reply by any other members within a week, I will know
> it is correct that "we need not call device_remove_file() firstly before
> call device_unregister()" (at least, one member's reply supports this
> conclusion).
>
> I find this 'question' when discussing a patch with another members in
> linux-kernel@xxxxxxxxxxxxxxx, I have read the related code and also have
> searched with google, but can not find the result, so I want to consult
> it in linux-kernel@xxxxxxxxxxxxxxxx

Asking random questions on lkml, and relying on the fact that no one
else happens to say anything, is not any judge as to if the answer is
correct at all.

In fact, just asking questions on lkml has a very low chance of ever
getting a correct answer, given that the people that usually do know the
answer to these types of things are usually:
1) not reading lkml because they are busy doing real work
2) annoyed by questions that are easily answered by themselves by
either:
a) reading the code
b) writing a simple example module and testing it out yourself


Good luck,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/