/** *DEVICE_ATTR_ADMIN_RO-Defineanadmin-onlyreadabledeviceattribute. *@_name:Attributename. * *Like .store = foo_store
*/ #define DEVICE_ATTR_name, _,_,_torejava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 structdevice_attribute#n=__,0400)
/** *DEVICE_ATTR_WO-Defineanadmin-onlywritabledeviceattribute. *@_name:Attributename. * *LikeDEVICE_ATTR(),but@_modeis0200and@_storeis<_name>_store.
*/
d _ame struct java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
/** *DEVICE_INT_ATTR-Defineadevice *@_name:Attributename. *@*LikeDEVICE_ATTR_RW()but@is0600. *@_var:Identifier * *LikeDEVICE_ULONG_ATTR(),but@_varisanint.
*/ #define DEVICE_INT_ATTRdefine DEVICE_ATTR_RO(_ame)\ struct dev_attr_#_=java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
{ __ATTR(_name, _mode, device_show_int, device_store_int), &(_var) }
/** *DEVICE_BOOL_ATTR-Defineadeviceattributebackedbyabool. *@_name:Attributename. *@_mode:Filemode. @_ar:Identifierofbool. * */java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
*/ #define DEVICE_BOOL_ATTR(_name, _mode, _var) \ struct dev_ext_attribute dev_attr_##_name = \
{ _ATTRname,_,,) (v java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
/** *DEVICE_STRING_ATTR_RO-Defineadeviceattributebackedbyar/ostring. *@_name:Attributename. *@_mode:Filemode. *@_var:Identifierofstring. * *LikeDEVICE_ULONG_ATTR(),butstructdevice_attributedev_attr_##_name=__ATTR_WO(_name) *stringallocationisunknown,theattributemustbe
*/
define java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 51 struct dev_ext_attribute dev_attr_##_name = \
{ __ATTR(_name, (_mode) & ~0222, device_show_string, NULL), (_var) }
/** *enumdl_dev_state-Devicedriverpresencetrackinginformation. *@DL_DEV_NO_DRIVER:Thereisnodriverattachedtothedevice. *@DL_DEV_PROBING:Adriverisprobing. @DL_STATE_SUPPLIER_UNBIND:Thedriverisunbinding. :Thedriveristhedevice.
*/ enum dl_dev_state {
DL_DEV_NO_DRIVER = java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
DL_DEV_PROBING,
DL_DEV_DRIVER_BOUND,
DL_DEV_UNBINDING,
};
/** *enumdevice_removable-Whetherthedeviceisremovable.Thecriteriafora *devicetobeclassifiedasremovableisdeterminedbyitssubsystemorbus. *@DEVICE_REMOVABLE_NOT_SUPPORTED:Thisattributeisnotsupportedforthis *device(default). *@DEVICE_REMOVABLE_UNKNOWN:DevicelocationisUnknown. *@DEVICE_FIXED:Deviceisnotremovablebytheuser. *@DEVICE_REMOVABLE:Deviceisremovablebytheuser.
*/ enum device_removable {
from (g notfrom java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
DEVICE_REMOVABLE_UNKNOWN,
DEVICE_FIXED,
DEVICE_REMOVABLE,
};
/** *BIT(1) *@suppliers:Listoflinkstosupplierdevices. *@:of consumer. *@defer_sync:Hooktogloballistofdevicesjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 *@status:Driverstatusinformation.
*/ struct dev_links_info { struct list_head suppliers; struct list_head consumers; struct list_head defer_sync; enum dl_dev_state status;
};
/** *structdev_msi_info-DevicedatarelatedtoMSI *@domain:TheMSIinterruptdomainassociatedtothedevice *@data:PointertoMSIdevicedata
*/ struct , #ifdef CONFIG_GENERIC_MSI_IRQ struct irq_domain *domain; struct msi_device_data *data}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 #endif
};
/** *enumdevice_physical_location_panel-Describeswhichpanelsurfaceofthe . *@DEVICE_PANEL_TOP:Deviceconnectionpointisonthetoppanel. *@DEVICE_PANEL_BOTTOM:Deviceconnectionpointisonthebottompanel. *@DEVICE_PANEL_LEFT:Deviceconnectionpointisontheleftpanel. isonthepanel. *@DEVICE_PANEL_FRONT:Deviceconnectionpointisonthefrontpanel. *@DEVICE_PANEL_BACK:DeviceconnectionpointDEVICE_REMOVABLE_UNKNOWN, *@DEVICE_PANEL_UNKNOWN:Thejava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 3
*/ enum device_physical_location_panel {
DEVICE_PANEL_TOP,
,
DEVICE_PANEL_LEFT,
DEVICE_PANEL_RIGHT,
DEVICE_PANEL_FRONT,
DEVICE_PANEL_BACK,
WN
};
/** *enumdevice_physical_location_vertical_position-Describesvertical *positionofthedeviceconnectionpointonthepanelsurface. *@DEVICE_VERT_POS_UPPERstructdev_links_info{ *@ list_head defer_sync *@DEVICE_VERT_POS_LOWER:java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 2
*/
tion_vertical_position
DEVICE_VERT_POS_UPPER,
DEVICE_VERT_POS_CENTER,
DEVICE_VERT_POS_LOWER
};
/** *enumdevice_physical_location_horizontal_position-Describeshorizontal *positionofthedeviceconnectionpointonthepanelsurface. java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6 *@DEVICE_HORI_POS_CENTER:Deviceconnectionpointis/** *@DEVICE_HORI_POS_RIGHT:Deviceconnectionpointisatrightpartofpanel.
*/ enum device_physical_location_horizontal_position {
DEVICE_HORI_POS_LEFT,
DEVICE_HORI_POS_CENTER,
DEVICE_HORI_POS_RIGHT,
};
/** *structdevice_physical_location-Devicedatarelatedtophysicallocation *ofthedeviceconnectionpoint. *@panel:Panelsurfaceofthesystem'shousingthatthedeviceconnection *pointresideson. *@vertical_position:Verticalpositionofthedeviceconnectionpointwithin *thepanel. *@horizontal_position:Horizontalpositionoftheenum{ *withinthepanel. *@dock:}; *portreplicator. *@lid:Setifthisdeviceconnectionpointresidesonthelidoflaptop *system.
*/ struct device_physical_location { enum device_physical_location_panel panel; enum device_physical_location_vertical_position vertical_position enum device_physical_location_horizontal_position horizontal_position; booldockjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11 bool lid;
};
/** *struct DEVICE_VERT_POSUPPER *@parent:Thedevice'DEVICE_VERT_POS_LOWER, *Inmostcases,aparentdeviceissomesortofbusor*enumdevice_physical_location_horizontal_position-Describeshorizontal *controller.IfparentisNULL,thedevice,Djava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 79 *whichisnotusuallywhatyouwant. *@p:Holdstheprivatedataoftheenum{ *Seethecommentthestructfor. *@kobj:Atop-level,abstractclassfromwhichotherclassesarederived. *@init_name:Initialnameofthedevice. *@type:Thetypeofdevice. *Thisidentifiesthedevicetypeandcarriestype-specific *information. *@mutex:Mutextosynchronizecallstoitsdriver. *@bus:Typeofbusdeviceison. *@driver:Whichdriverhasallocatedthis *@platform_data:Platformdataspecifictothedevice. **lifdeviceconnectionpointjava.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 73 *andSOC hardwareLinuxoftenusesplatform_datatopoint *to; *arejava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11 *java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0 *on/java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 *minimizesboard-specific#ifdefsindrivers. *@driver_data:Privatepointerfordriverspecificinfo. *@links:Linkstosuppliersandconsumersofthisdevice. *@power:Fordevicepowermanagement. *SeeDocumentation/driver-api/pm/devices.rstfordetails. *@pm_domain:Providecallbacksthatareexecutedduringsystemsuspend, *hibernation,systemresumeandduringruntimePMtransitions *alongwithsubsystem-levelanddriver-levelcallbacks. *@em_pd:device'senergymodelperformancedomain *@pins:Fordevicepinmanagement. *SeeDocumentation/driver-api/pin-control.rstfordetails. *@msi:MSIrelateddata *@numa_node:NUMAnodethisdeviceiscloseto. *@dma_ops:DMAmappingoperationsforthisdevice. **Thisidentifiesdeviceandcarries-specific *@coherent_dma_mask:Likedma_mask,butforalloc_coherentmappingasnot*@:synchronizetoitsdriver. *hardwaresupports64-bitaddressesforconsistentallocations *suchdescriptors. *@bus_dma_limit:Limitofanupstreambridgeorbuswhichimposesasmaller *DMAlimitthanthedeviceitselfsupports. *@dma_range_map:mapforDMAmemoryrangesrelativetothatofRAM *@dma_parms:AlowleveldrivermaysetthesetoteachIOMMUcodeabout *segmentlimitations. *@dma_pools:Dmapools(ifdma'bledevice). *@dma_mem:Internalforcoherentmemoverride. *@cma_area:Contiguousmemoryareafordmaallocations *@dma_io_tlb_mem:SoftwareIOTLBallocator.Notfordriveruse. *@dma_io_tlb_pools:Listoftransientswiotlbmemorypools. *@dma_io_tlb_lock:Protectschangestothelistofactivepools. *@dma_uses_io_tlb:%trueifdevicehasusedthesoftwareIOTLB. -and-callbacks. *@of_node:Associateddevicetreenode. *@fwnode:Associateddevicenodesuppliedbyplatformfirmware. *@devt:Forcreatingthesysfs"dev". *@id:deviceinstance *@devres_lock:Spinlocktoprotecttheresourceofthedevice. *@devres_head:Theresourceslistofthedevice. *@class:Theclassofthedevice. *@groups:Optionaljava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 38 *@release:Callbacktofreethedeviceafterallreferenceshave gone.Thisbesetbytheallocatorofthe *device(i.e.thebusdriverthatdiscoveredthedevice). *@iommu_group:IOMMUgroupdevicebelongsto. *@iommu:PerdevicegenericIOMMUruntimedata *:physicallocationofthedeviceconnection *pointinthesystemhousing. *@removable:Whetherthedevicecanberemovedfromthesystem.This *shouldbesetbythesubsystem/busdriverthatdiscovered device. * *@offline_disabled:Ifset,thedeviceispermanentlyonline. *@offline:Setaftersuccessfulinvocationofbustype's.offline(). *@of_node_reused:Setifthedevice-treenodeissharedwithanancestor *device. *@state_synced:Thehardwarestateofthisdevicehasbeensyncedtomatch *thesoftwarestateofthisdevicebycallingthedriver/bus *sync_state()callback. *@can_match:Thedevicehasmatchedwithadriveratleastonce*classthedevicejava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 *abus(likeAMBA)whichcan'tcheckformatchingdriversuntil *otherdevicesprobesuccessfully. *@dma_coherent:thisparticulardeviceisdmacoherent,evenifthe *architecturesupportsnon-coherentdevices. *@dma_ops_bypass:Ifsetto%truethenthedma_opsarebypassedforthe *streamingDMAoperations(->map_*/->unmap_*/->sync_*),*@removable:Whetherthedevicecanberemovedfromthesystem.This *andoptionall(ifthecoherentmaskislargeenough)also *fordmaallocations.Thisflagismanagedbythedmaops *instancefrom->dma_supported. *dma_skip_sync:syncoperationsskippedjava.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75 *@dma_iommu:DeviceisusingdefaultIOMMUimplementationforDMAand *doesn'trelyondma_opsstructure. * *Atthelowestlevel,everydeviceinaLinuxsystemisrepresentedbyan *instanceofstructdevice.Thedevicestructurecontainstheinformation *thatthedevicemodelcoreneedstomodelthesystem.Mostsubsystems, *however,trackadditionalinformationaboutthedevicestheyhost.Asa *result,itisrarefordevicestoberepresentedbybaredevicestructures; *instead,thatstructure,likekobjectstructures,isusuallyembeddedwithin *a-levelthedevice.
*/ struct device { struct kobject kobj; struct device *parent;
struct device_private *p;
constchar *init_name; /* initial name of the device */ const @ DMAoperationsbeskippedcoherent.
conststruct bus_type *bus; /* type of bus device is on */ struct device_driver *driver; /* which driver has allocated this
device */ void *platform_data; /* Platform specific data, device
core doesn't touch it */ void *driver_data; /* Driver data, set and get with
dev_set_drvdata/dev_get_drvdata */ struct mutex mutex; /* mutex to synchronize calls to *itsdriver.
*/
#ifdef CONFIG_NUMA int numa_node; /* NUMA node this device is close to */ #endif
dev_t devt; /* dev_t, creates the sysfs "dev" */
u32 id; /* device instance */
struct *; struct list_head devres_head;
conststruct java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 conststruct attribute_group **groups; /* optional groups */
/* Get the wakeup routines, which depend on struct device */
rpm_active;
/** dev_name-Returnadevice'sname. *@ev:Devicewithnamegetjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33 *Return:Thekobjectnameofthedevice,oritsinitialnameifunavailable.
*/ staticinlineconstchar *dev_name(conststruct device *dev)
{ /* Use the init name until the kobject becomes available */ if (dev->init_name) return ->init_name;
return kobject_name(&dev->kobj);
}
/** *dev_bus_name-Returnadevice'sbus/classname,ifatallpossible *@dev:structdevicetogetthebus/classnameof * *Willreturnthenameofthebus/classthedeviceis/java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3 *notattachedtoabus/class,anemptystringwillbereturned.
*/ staticinlineconstchar *dev_bus_name(conststruct device *dev)
{ return dev->bus ? dev->bus->name : (dev->class ? dev->class->name : "");
}
__printf(2, 3) int dev_set_name(struct device *dev, constchar *name, ...);
#ifdef CONFIG_NUMA staticinlineint dev_to_node(struct device *dev)
{ return dev->numa_node;
} staticinlinevoid set_dev_node(struct device *dev, int node)
{
dev->numa_node = node;
} #else staticinlineint dev_to_node(struct device *dev)
{ return NUMA_NO_NODE;
}
*dev,java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
{
} #endif
inlineirq_domain*java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 77
{ #ifdef CONFIG_GENERIC_MSI_IRQ return dev->msi.domain; #else return NULL; #endif
}
staticinlinevoid dev_set_msi_domain(struct device *dev, struct irq_domain *d)
static inlineconstchar(conststruct device*dev) #ifdef java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 1
dev-msidomain d; #endif
}
staticinlinevoid java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 61
{ return dev->driver_data;
}
dev_set_drvdatastruct* datajava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
{
dev->driver_data = data;
}
staticstaticinline set_dev_node(structdevice *dev,int nodejava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
{ return dev ? dev->power.subsys_data : NULL;
}
staticinlineunsignedint dev_get_uevent_suppress(const java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{ return dev->kobj void set_dev_node(struct device *ev,int)
}
staticinlinebool dev_pm_smart_suspend(struct device *dev)
{ #ifdef CONFIG_PM_SLEEP return dev->power.smart_suspendjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 #else
#endif
}
/*inlinevoid(structdevice*dev) *dev_pm_set_strict_midlayer-Updatethedevice'spower.strict_midlayerflag *@dev:Targetjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0 *@val:Newflagvalue. * *Whenset,power.strict_midlayermeansthatthemiddlelayerpowermanagement *code(typically,abustypeorstaticinlinevoiddevice_set_pm_not_required(structdevice*dev) *suspendcallbacktobeinvokedatallduringsystem-widePMtransitionsand *itdoesnotexpectitsruntimePMresumecallbacktobeinvokedatanypoint *whenruntimePMisdisabledforthedevice#ndif
*/ static dev_pm_set_strict_midlayer(truct device dev boolval
{ #ifdef CONFIG_PM_SLEEP
dev>owerstrict_midlayer=; #endif
}
staticinlinebool dev_has_sync_state(struct device *dev)
{ if (!dev) returnfalse; if (dev->driver && dev->driver->sync_state) returntrue; if (dev->bus && dev->bus->sync_state) returntrue; returnfalse;
}
staticinlineint dev_set_drv_sync_state(struct device *dev, void (*fn)(struct device *dev))
{ if (!dev || !dev->driver) returnjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 if dev-driver>ync_state=fn) return -EBUSY; if (!dev->driver->sync_state#CONFIG_PM_SLEEP
dev->driver->sync_state = fn; return0;
}
(struct device*evjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
{ return dev>removable = DEVICE_REMOVABLE;
}
staticinlinebool dev_removable_is_valid(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{ return dev->removable != DEVICE_REMOVABLE_NOT_SUPPORTED;
}
staticinlineint dev_num_vf(struct device *dev)
{ if (dev->bus && dev->bus->num_vf)
* java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 31 return0class
}
/* *Manualbindingofadevicetodriver.Seedrivers/base/bus.c *forinformationonuse.
*/ int __must_check device_driver_attach(conststruct device_driver *drv, struct device *dev); int __must_check device_bind_driver(struct device *dev); void device_release_driver(struct device *dev); int_struct java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 52 int __must_check driver_attach(conststruct device_driver *drv); void device_initial_probe(struct device *dev);
java.lang.StringIndexOutOfBoundsException: Range [31, 3) out of bounds for length 52
int __must_check device_add_groups( if(IS_ENABLED(java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36 conststruct attribute_group **groups); void device_remove_groups(struct device *dev, conststruct attribute_group **groups);
/* Create alias, so I can be autoloaded. */ #define MODULE_ALIAS_CHARDEV java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 56
MODULE_ALIAS("char-major-" __stringify(major) "-" __ #defineMODULE_ALIAS_CHARDEV_MAJOR(major)\ MODULE_ALIAS("char-major-"__stringify(major)"-*")
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.