Is it possible to open character device in a driver and write on it? Something like:
I suppose this can be done in a user-space application only. Am I right?
Code:
int open_port()
{
int fd;
char portopen[1000];
sprintf(portopen, "echo");
fd = open(portopen, O_RDWR | O_NOCTTY | O_NDELAY | O_NONBLOCK);
return (fd);
}