mirror of
https://github.com/ioacademy-jikim/device_driver
synced 2025-06-07 07:56:08 +00:00
11 lines
159 B
C
11 lines
159 B
C
#include <fcntl.h>
|
|
int main()
|
|
{
|
|
int fd;
|
|
fd = open( "/sys/devices/virtual/misc/mydev/uevent", O_WRONLY );
|
|
write( fd, "add\n", 4 );
|
|
close(fd);
|
|
return 0;
|
|
}
|
|
|