![]() | |||||||||||||
Messages in this thread |
Herbert Poetzl <herbert@13thfloor.at> writes: > sure, basically we have two cases which interact > with userspace: the read and the write case. > > for the read case, we want something which gives > us the 'virtualized' view, which might often be > the same as the host gets, where for the write > case it is usually not that simple, as we might > not want a context to write to 'world' stuff > > so, having two different functions here, or one > which gets passed the direction, might be much > simpler to adjust in many cases than adding more > and more structures ... but YMMV I'm not convinced either way yet but my gut feel is that the use case for get/put functions is incomplete permission checks on various sysctls. If that is the fixing the permission checks looks like the right thing to do. Eric - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ | ||||||||||||
| Last update: 2006-03-19 18:07 [from the cache] ©2003-2008 | |||||||||||||