Using Linux system (hwmon) driver for user application

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I want to use a Raspberry Pi compute module as part of an embedded control system. There are several sensors like multiple INA226 current sensors, a DS3231 RTC, two SI7050 temperature and LPS331AP pressure sensors, and an MPU-6050 IMU.



All of these devices have default Linux drivers. So I am wondering if I can't just use them? If I look for Raspberry Pi drivers for these devices I find many librarys running in the user space. Why would anyone write a driver in the user space if tested drivers are available in the kernel?



Is it a problem that some drivers are hwmon drivers? For example the temperature and current sensor and the fan controller. I would "misuse" them for other purposes (measuring data not related to the actual Raspberry Pi core but in a different part of the system).



Thanks for your input!







share|improve this question
























    up vote
    0
    down vote

    favorite












    I want to use a Raspberry Pi compute module as part of an embedded control system. There are several sensors like multiple INA226 current sensors, a DS3231 RTC, two SI7050 temperature and LPS331AP pressure sensors, and an MPU-6050 IMU.



    All of these devices have default Linux drivers. So I am wondering if I can't just use them? If I look for Raspberry Pi drivers for these devices I find many librarys running in the user space. Why would anyone write a driver in the user space if tested drivers are available in the kernel?



    Is it a problem that some drivers are hwmon drivers? For example the temperature and current sensor and the fan controller. I would "misuse" them for other purposes (measuring data not related to the actual Raspberry Pi core but in a different part of the system).



    Thanks for your input!







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want to use a Raspberry Pi compute module as part of an embedded control system. There are several sensors like multiple INA226 current sensors, a DS3231 RTC, two SI7050 temperature and LPS331AP pressure sensors, and an MPU-6050 IMU.



      All of these devices have default Linux drivers. So I am wondering if I can't just use them? If I look for Raspberry Pi drivers for these devices I find many librarys running in the user space. Why would anyone write a driver in the user space if tested drivers are available in the kernel?



      Is it a problem that some drivers are hwmon drivers? For example the temperature and current sensor and the fan controller. I would "misuse" them for other purposes (measuring data not related to the actual Raspberry Pi core but in a different part of the system).



      Thanks for your input!







      share|improve this question












      I want to use a Raspberry Pi compute module as part of an embedded control system. There are several sensors like multiple INA226 current sensors, a DS3231 RTC, two SI7050 temperature and LPS331AP pressure sensors, and an MPU-6050 IMU.



      All of these devices have default Linux drivers. So I am wondering if I can't just use them? If I look for Raspberry Pi drivers for these devices I find many librarys running in the user space. Why would anyone write a driver in the user space if tested drivers are available in the kernel?



      Is it a problem that some drivers are hwmon drivers? For example the temperature and current sensor and the fan controller. I would "misuse" them for other purposes (measuring data not related to the actual Raspberry Pi core but in a different part of the system).



      Thanks for your input!









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 1 at 7:37









      Jan B.

      113




      113

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434796%2fusing-linux-system-hwmon-driver-for-user-application%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434796%2fusing-linux-system-hwmon-driver-for-user-application%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Displaying single band from multi-band raster using QGIS

          How many registers does an x86_64 CPU actually have?