On Wed, 19 Feb 2014, Andrew Morton wrote: > If we're touching the task_struct we could make it a bool. > > Or just a single bit(field). task_struct already has a bunch of > bitfields in it (strangely, they aren't contiguous). But some locking > would be needed if tasks-other-than-current can modify the bit. >
Or store to any adjacent bit in the word. I think the simplest solution is to use kstrtoint() and test for val == !!val since, as we all know, {simple,strict}_strto* is deprecated per checkpatch :) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/