Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 58193

A device driver is a specialized software component (usually considered "system software") which allows a system to interact with a particular type or class of hardware device, such as a keyboard, serial port, disk drive, video display, memory controller, or other peripheral.

4 votes

Callback in Linux kernel driver in order to hide device's low-level protocol

Pass arg instead of lcd Right now, you are passing lcd to your callback function, but the callback function doesn't need lcd. What it needs is the callback argument that you stored in lcd->raw_callb …
JS1's user avatar
  • 28.6k
2 votes

Processing text messages from a GSM module

Avoid overlapping strings with strncpy() I can't speak to the correctness of your algorithm because I don't know why you need to read the same message up to 4 times. But I did spot something non-sta …
JS1's user avatar
  • 28.6k
2 votes

7-segment 4-digit display

Use an array instead of functions Instead of using multiple functions, you can encode your digit segments into a single array. For example: // Define this array at the top of your program. static con …
JS1's user avatar
  • 28.6k