Re: [PATCH 1/2] tty: add new helper function tty_get_mget

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your fast respond!

@@ -2494,6 +2494,25 @@ static int send_break(struct tty_struct *tty, unsigned int duration)
  	return retval;
  }
  +/**
+ * tty_get_mget		-	get modem status

Heh, the naming is funny. It apparently comes from tiocmget. But that
comes from:
tty ioctl modem get (TIOCMGET)
tty ioctl modem set (TIOCMSET)

So you should name it like tty_get_modem() not get_mget().

I didn't like the name too, but I couldn't think of another.
The function is returning the state of serial control and status signals.

From your suggestion for the name, however, you can not deduce that at all.
How would it be then with the following name?

tty_tioctl_state() ?


Also those extra spaces around "-" caused some issues in the generated
output and should be removed (everywhere).

Ok, I will change this in an own commit throughout the file.


Thanks

Florian

@jirislaby: Forgot to send this message to the mailing list as well!



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux