Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  sysfs.c

  Sprache: C
 

// SPDX-License-Identifier: GPL-2.0
#include <linux/kernel.h>
#include <linux/of.h>
#include <linux/stat.h>
/* FIX UP */
#include "soundbus.h"

static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
        char *buf)
{
 struct soundbus_dev *sdev = to_soundbus_device(dev);
 struct platform_device *of = &sdev->ofdev;

 if (*sdev->modalias)
  return sysfs_emit(buf, "%s\n", sdev->modalias);
 else
  return sysfs_emit(buf, "of:N%pOFn%c%s\n",
      of->dev.of_node, 'T',
      of_node_get_device_type(of->dev.of_node));
}
static DEVICE_ATTR_RO(modalias);

static ssize_t name_show(struct device *dev,
    struct device_attribute *attr, char *buf)
{
 struct soundbus_dev *sdev = to_soundbus_device(dev);
 struct platform_device *of = &sdev->ofdev;

 return sysfs_emit(buf, "%pOFn\n", of->dev.of_node);
}
static DEVICE_ATTR_RO(name);

static ssize_t type_show(struct device *dev,
    struct device_attribute *attr, char *buf)
{
 struct soundbus_dev *sdev = to_soundbus_device(dev);
 struct platform_device *of = &sdev->ofdev;

 return sysfs_emit(buf, "%s\n", of_node_get_device_type(of->dev.of_node));
}
static DEVICE_ATTR_RO(type);

struct attribute *soundbus_dev_attrs[] = {
 &dev_attr_name.attr,
 &dev_attr_type.attr,
 &dev_attr_modalias.attr,
 NULL,
};

Messung V0.5 in Prozent
C=95 H=95 G=94

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-07) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik