This is just a basic linux device driver which explains about the atomic variables in linux device driver.
Please refer this URL for the complete tutorial of this example source code. https://embetronicx.com/tutorials/linux/device-drivers/atomic-variables-atomic-operation/