!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/src/linux-oracle-5.13-headers-5.13.0-1018/include/linux/   drwxr-xr-x
Free 83.28 GB of 96.73 GB (86.1%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     enclosure.h (4.02 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Enclosure Services
 *
 * Copyright (C) 2008 James Bottomley <[email protected]>
 *
**-----------------------------------------------------------------------------
**
**
**-----------------------------------------------------------------------------
*/
#ifndef _LINUX_ENCLOSURE_H_
#define _LINUX_ENCLOSURE_H_

#include <linux/device.h>
#include <linux/list.h>

/* A few generic types ... taken from ses-2 */
enum enclosure_component_type {
    ENCLOSURE_COMPONENT_DEVICE = 0x01,
    ENCLOSURE_COMPONENT_CONTROLLER_ELECTRONICS = 0x07,
    ENCLOSURE_COMPONENT_SCSI_TARGET_PORT = 0x14,
    ENCLOSURE_COMPONENT_SCSI_INITIATOR_PORT = 0x15,
    ENCLOSURE_COMPONENT_ARRAY_DEVICE = 0x17,
    ENCLOSURE_COMPONENT_SAS_EXPANDER = 0x18,
};

/* ses-2 common element status */
enum enclosure_status {
    ENCLOSURE_STATUS_UNSUPPORTED = 0,
    ENCLOSURE_STATUS_OK,
    ENCLOSURE_STATUS_CRITICAL,
    ENCLOSURE_STATUS_NON_CRITICAL,
    ENCLOSURE_STATUS_UNRECOVERABLE,
    ENCLOSURE_STATUS_NOT_INSTALLED,
    ENCLOSURE_STATUS_UNKNOWN,
    ENCLOSURE_STATUS_UNAVAILABLE,
    /* last element for counting purposes */
    ENCLOSURE_STATUS_MAX
};

/* SFF-8485 activity light settings */
enum enclosure_component_setting {
    ENCLOSURE_SETTING_DISABLED = 0,
    ENCLOSURE_SETTING_ENABLED = 1,
    ENCLOSURE_SETTING_BLINK_A_ON_OFF = 2,
    ENCLOSURE_SETTING_BLINK_A_OFF_ON = 3,
    ENCLOSURE_SETTING_BLINK_B_ON_OFF = 6,
    ENCLOSURE_SETTING_BLINK_B_OFF_ON = 7,
};

struct enclosure_device;
struct enclosure_component;
struct enclosure_component_callbacks {
    void (*get_status)(struct enclosure_device *,
                 struct enclosure_component *);
    int (*set_status)(struct enclosure_device *,
              struct enclosure_component *,
              enum enclosure_status);
    void (*get_fault)(struct enclosure_device *,
              struct enclosure_component *);
    int (*set_fault)(struct enclosure_device *,
             struct enclosure_component *,
             enum enclosure_component_setting);
    void (*get_active)(struct enclosure_device *,
               struct enclosure_component *);
    int (*set_active)(struct enclosure_device *,
              struct enclosure_component *,
              enum enclosure_component_setting);
    void (*get_locate)(struct enclosure_device *,
               struct enclosure_component *);
    int (*set_locate)(struct enclosure_device *,
              struct enclosure_component *,
              enum enclosure_component_setting);
    void (*get_power_status)(struct enclosure_device *,
                 struct enclosure_component *);
    int (*set_power_status)(struct enclosure_device *,
                struct enclosure_component *,
                int);
    int (*show_id)(struct enclosure_device *, char *buf);
};


struct enclosure_component {
    void *scratch;
    struct device cdev;
    struct device *dev;
    enum enclosure_component_type type;
    int number;
    int fault;
    int active;
    int locate;
    int slot;
    enum enclosure_status status;
    int power_status;
};

struct enclosure_device {
    void *scratch;
    struct list_head node;
    struct device edev;
    struct enclosure_component_callbacks *cb;
    int components;
    struct enclosure_component component[];
};

static inline struct enclosure_device *
to_enclosure_device(struct device *dev)
{
    return container_of(dev, struct enclosure_device, edev);
}

static inline struct enclosure_component *
to_enclosure_component(struct device *dev)
{
    return container_of(dev, struct enclosure_component, cdev);
}

struct enclosure_device *
enclosure_register(struct device *, const char *, int,
           struct enclosure_component_callbacks *);
void enclosure_unregister(struct enclosure_device *);
struct enclosure_component *
enclosure_component_alloc(struct enclosure_device *, unsigned int,
              enum enclosure_component_type, const char *);
int enclosure_component_register(struct enclosure_component *);
int enclosure_add_device(struct enclosure_device *enclosure, int component,
             struct device *dev);
int enclosure_remove_device(struct enclosure_device *, struct device *);
struct enclosure_device *enclosure_find(struct device *dev,
                    struct enclosure_device *start);
int enclosure_for_each_device(int (*fn)(struct enclosure_device *, void *),
                  void *data);

#endif /* _LINUX_ENCLOSURE_H_ */

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0043 ]--