mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-11-09 08:38:04 +08:00
内核同步机制...
This commit is contained in:
1 parent
6035cdb0a3
commit
2daf9de82c
1 file changed
+1
@@ -15,6 +15,7 @@ MODULE_DESCRIPTION("test atomic_t");
|
||||
|
||||
atomic_t count = ATOMIC_INIT(1);
|
||||
|
||||
|
||||
static int hello_init(void)
|
||||
{
|
||||
printk("init : %d\n", atomic_read(count));
|
||||
|
||||
Reference in new issue
Block a user