Questions tagged [userspace]

109 questions
-1
votes
1 answer

Read a word (2 byte) without providing a register address from userspace

I am trying to read out an i2c ambient light sensor BH1750 from C in userspace. I am using a BeagleBone pocket with Linux. The Datasheet says, that after a measurement operation the result needs to be read with the following i2c sequence: S Adr Rd…
Anderle
  • 43
  • 5
-1
votes
1 answer

Javascript Promises: Can they be fully implemented in userspace code?

Is the Javascript Promise class something one could implement fully in userspace code, without requiring any support from native code (i.e., the Javascript internals) that only someone implementing a Javascript engine (such as the V8 team) would…
Harry
  • 3,684
  • 6
  • 39
  • 48
-2
votes
4 answers

Must allocated memory address be positive in user space of all platforms

I want to know whether there is a guarantee that memory address is a positive integer, including zero, in intptr_t using the following c/c++ functions (or more)? Maybe you can help me to list their results like this or give me a summary if…
samm
  • 620
  • 10
  • 22
-5
votes
1 answer

How to use copy_to_user() in a kernel program?

I tried using copy_to_user() inside a loop. for_each_process(p) { copy_to_user(buf, "data of p", len); } But, the output that I got is different. It has only the last line of data in the user space, e.g. #Data expected to copy to user…
Krishna
  • 484
  • 7
  • 22
1 2 3 4 5 6 7
8