Menu Home

linux kernel driver自动创建设备

static int watchdog_init(void)
{
wdt_major = register_chrdev(0, "lte8718wdt", <e8718wdt_fopts);
wdt_class = class_create(THIS_MODULE, wdt_name);
device_create(wdt_class, NULL, MKDEV(wdt_major, 0), NULL, wdt_name);
}

static int watchdog_exit(void)
{
device_destroy(wdt_class, MKDEV(wdt_major, 0));
class_destroy(wdt_class);
unregister_chrdev(lte8718wdt_major, "lte8718wdt");
}

13 replies

  1. I simply had to thank you so much once again. I do not know the things I would have created without the actual creative ideas provided by you over such a area of interest. It absolutely was an absolute traumatic crisis in my opinion, however , viewing the very specialized avenue you resolved the issue made me to cry over contentment. I am just grateful for this work and as well , sincerely hope you recognize what an amazing job you happen to be carrying out instructing most people using a blog. I am certain you haven’t come across all of us.

  2. I not to mention my pals have already been reviewing the good tips and hints from your site and so the sudden I got a horrible feeling I never expressed respect to the site owner for those secrets. Most of the boys were as a result warmed to study them and have in effect in actuality been loving those things. We appreciate you truly being really thoughtful and then for making a decision on varieties of smart subject matter most people are really eager to be informed on. My very own sincere regret for not expressing gratitude to you sooner.

  3. I’m writing to let you know of the perfect experience my wife’s child had reading through yuor web blog. She learned such a lot of details, which included how it is like to possess an incredible teaching mood to get certain people without problems know just exactly certain specialized topics. You really surpassed readers’ desires. Many thanks for displaying such warm and friendly, trusted, informative not to mention fun thoughts on this topic to Sandra.

  4. I am commenting to make you be aware of what a helpful discovery our princess obtained checking the blog. She even learned many details, which include what it’s like to possess an awesome teaching mood to let certain people without problems comprehend various specialized matters. You actually did more than people’s desires. Thanks for imparting these helpful, safe, educational and unique thoughts on the topic to Emily.

  5. I am only writing to let you understand what a wonderful discovery my daughter found studying your site. She discovered several issues, most notably how it is like to have an ideal helping mindset to make many people without hassle learn several complex subject areas. You truly did more than our expectations. Thank you for giving these beneficial, trustworthy, revealing and as well as easy tips about your topic to Mary.

  6. I really wanted to develop a remark to appreciate you for some of the fantastic strategies you are giving out at this website. My extensive internet search has at the end been paid with professional content to share with my colleagues. I ‘d assert that many of us site visitors actually are really fortunate to be in a fantastic site with many lovely people with beneficial things. I feel very privileged to have used your webpages and look forward to many more exciting times reading here. Thank you once again for all the details.

  7. I simply needed to say thanks yet again. I do not know what I would’ve achieved in the absence of those tips and hints shown by you relating to such subject matter. It became a very intimidating case in my circumstances, but looking at a professional fashion you managed it made me to cry with happiness. Now i’m happier for your guidance and in addition expect you comprehend what a powerful job you are always undertaking educating the rest thru your web page. I am certain you haven’t encountered all of us.

  8. Thanks a lot for providing individuals with such a special opportunity to check tips from this blog. It is always so excellent and jam-packed with amusement for me and my office mates to search your website the equivalent of three times per week to learn the latest secrets you have. And lastly, I am at all times happy with all the fantastic hints you give. Some 4 points in this article are ultimately the most impressive I have ever had.

  9. I wish to get across my affection for your generosity supporting those people who actually need guidance on in this question. Your very own commitment to passing the message around ended up being exceptionally effective and has really empowered some individuals like me to get to their pursuits. Your personal helpful report can mean so much a person like me and extremely more to my peers. Warm regards; from everyone of us.

  10. Thanks so much for giving everyone an extremely memorable chance to read in detail from this site. It can be so great and jam-packed with fun for me and my office acquaintances to visit your blog the equivalent of 3 times in a week to read through the newest items you have. And lastly, I’m also usually fascinated considering the powerful solutions you serve. Some 1 tips in this post are in reality the most beneficial I have had.

  11. I and my pals appeared to be digesting the best recommendations from your web page while immediately developed an awful suspicion I had not expressed respect to you for those strategies. Most of the women had been absolutely joyful to learn them and have in effect really been enjoying those things. Appreciation for being well thoughtful and also for selecting such quality topics millions of individuals are really needing to know about. Our own sincere apologies for not expressing gratitude to you sooner.

  12. I have to show some appreciation to you just for bailing me out of this type of condition. After researching through the the web and coming across ideas that were not pleasant, I assumed my entire life was well over. Living without the presence of strategies to the issues you’ve sorted out all through your article is a critical case, as well as the kind which may have adversely damaged my career if I hadn’t noticed your web site. Your good training and kindness in touching a lot of things was precious. I’m not sure what I would’ve done if I hadn’t encountered such a point like this. I can also now look forward to my future. Thank you very much for this high quality and result oriented guide. I won’t hesitate to recommend the website to anyone who needs to have direction on this problem.

  13. I enjoy you because of all of your effort on this web page. My mum takes pleasure in engaging in investigation and it’s really easy to understand why. All of us know all of the compelling manner you make worthwhile tricks by means of the website and in addition attract participation from some other people on this concern then our own simple princess is always being taught a great deal. Enjoy the remaining portion of the new year. You are performing a dazzling job.

Leave a Reply