~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/driver-api/gpio/using-gpio.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/driver-api/gpio/using-gpio.rst (Version linux-6.12-rc7) and /Documentation/driver-api/gpio/using-gpio.rst (Version linux-2.6.0)


  1 =========================                         
  2 Using GPIO Lines in Linux                         
  3 =========================                         
  4                                                   
  5 The Linux kernel exists to abstract and presen    
  6 as such are normally not user facing abstracti    
  7 and preferred way to use GPIO lines is to let     
  8 with them.                                        
  9                                                   
 10 For examples of already existing generic drive    
 11 examples for any other kernel drivers you want    
 12 Documentation/driver-api/gpio/drivers-on-gpio.    
 13                                                   
 14 For any kind of mass produced system you want     
 15 laptops, phones, tablets, routers, and any con    
 16 using appropriate kernel drivers is paramount.    
 17 in the upstream Linux kernel when you feel it     
 18 help to refine it, see Documentation/process/s    
 19                                                   
 20 In Linux GPIO lines also have a userspace ABI.    
 21                                                   
 22 The userspace ABI is intended for one-off depl    
 23 factory lines, maker community projects, works    
 24 industrial automation, PLC-type use cases, doo    
 25 of specialized equipment that is not produced     
 26 operators to have a deep knowledge of the equi    
 27 software-hardware interface to be set up. They    
 28 to any existing kernel subsystem and not be a     
 29 because of not being reusable or abstract enou    
 30 computer hardware related policy.                 
 31                                                   
 32 Applications that have a good reason to use th    
 33 from userspace will likely be a good fit for u    
 34 well.                                             
 35                                                   
 36 Do not under any circumstances abuse the GPIO     
 37 any product development projects. If you use i    
 38 productify the prototype: rewrite it using pro    
 39 any circumstances deploy any uniform products     
 40                                                   
 41 The userspace ABI is a character device for ea    
 42 These devices will appear on the system as ``/    
 43 ``/dev/gpiochipN``. Examples of how to directl    
 44 found in the kernel tree ``tools/gpio`` subdir    
 45                                                   
 46 For structured and managed applications, we re    
 47 libgpiod_ library. This provides helper abstra    
 48 and arbitration for multiple simultaneous cons    
 49                                                   
 50 .. _libgpiod: https://git.kernel.org/pub/scm/l    
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php