Welcome to the Linux Foundation Forum!

Kernel code question?

Hey! I looked into the github linux Kernel code and there might have found some potential of saving cycles.
I didn't know haw to act, so I made an account in here to ask questions.

For example in:
https://github.com/torvalds/linux/blob/master/kernel/printk/printk.c 1497 - 1499
-> static int syslog_print(char __user *buf, int size)
{
...
while (size > 0) {
size_t n;
size_t skip;
...

shouldn't that one be better?

  1. ...
  2. size_t n;
  3. size_t skip;
  4. while (size > 0) {
  5. ...

What do you think?

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training