mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-08-18 09:07:43 +08:00
内核同步机制...
This commit is contained in:
@@ -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