i2c_register_board_info man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

I2C_REGISTER_BOARD_I(9)	    I2C and SMBus Subsystem    I2C_REGISTER_BOARD_I(9)

NAME
       i2c_register_board_info - statically declare I2C devices

SYNOPSIS
       int i2c_register_board_info(int busnum,
				   struct i2c_board_info const * info,
				   unsigned len);

ARGUMENTS
       busnum
	   identifies the bus to which these devices belong

       info
	   vector of i2c device descriptors

       len
	   how many descriptors in the vector; may be zero to reserve the
	   specified bus number.

DESCRIPTION
       Systems using the Linux I2C driver stack can declare tables of board
       info while they initialize. This should be done in board-specific init
       code near arch_initcall time, or equivalent, before any I2C adapter
       driver is registered. For example, mainboard init code could define
       several devices, as could the init code for each daughtercard in a
       board stack.

       The I2C devices will be created later, after the adapter for the
       relevant bus has been registered. After that moment, standard driver
       model tools are used to bind “new style” I2C drivers to the devices.
       The bus number for any device declared using this routine is not
       available for dynamic allocation.

       The board info passed can safely be __initdata, but be careful of
       embedded pointers (for platform_data, functions, etc) since that won´t
       be copied.

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013	       I2C_REGISTER_BOARD_I(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net