Fri, May 26, 2017 at 06:55:25PM CEST, xiyou.wangc...@gmail.com wrote: >On Fri, May 26, 2017 at 7:54 AM, David Miller <da...@davemloft.net> wrote: >> And I also didn't find the boolean logic hard to understand at all. >> >> It is in fact a very common pattern to pass a "create" boolean into >> lookup functions, to tell them whether to create a new object on >> lookup failure or not. And then also to control that boolean via >> what kind of netlink request we are processing. > >+10 > >It is a widely used pattern among the kernel source code. >I'd be surprised if an experienced kernel developer is not >aware of this pattern. ;)
Cong, as you wisely put, I'm not aware of this pattern and I'm also unaware of existence of ternary operator. Are this notes necessary? Does that make you feel better?